SwaggerDemoApi
SwaggerDemoApi copied to clipboard
the application can't run, because there is nothing for core folder.
IDX10803: Unable to create to obtain configuration from: 'https://localhost:44333/core/.well-known/openid-configuration'.
Many code related with core folder, but in source code there is nothing.
public class Startup
{
public void Configuration(IAppBuilder app)
{
// token validation
app.UseIdentityServerBearerTokenAuthentication(new IdentityServerBearerTokenAuthenticationOptions
{
Authority = "https://localhost:44333/core"
});
}
}
c.OAuth2("oauth2")
.Description("OAuth2 Implicit Grant")
.Flow("implicit")
.AuthorizationUrl("https://localhost:44333/core/connect/authorize")
.TokenUrl("https://localhost:44333/core/connect/token")
.Scopes(scopes =>
{
scopes.Add("read", "Read access to protected resources");
scopes.Add("write", "Write access to protected resources");
});
@fan1789 Apparently this is meant to be a project from here: https://github.com/IdentityServer/IdentityServer3.Samples/tree/master/source/SelfHost%20(Minimal) I downloaded it, put it in the right place and re-added the project. Now everything works :)
@kolibrizas
I set up the IdentityServer3 into SwaggerDemoApi project. But got the warning like this:
And SwaggerDemoApi also got the exception that can't got configuation. Any sulotion?