SwaggerDemoApi icon indicating copy to clipboard operation
SwaggerDemoApi copied to clipboard

the application can't run, because there is nothing for core folder.

Open fan1789 opened this issue 7 years ago • 2 comments

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 avatar Feb 07 '18 06:02 fan1789

@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 avatar Jul 17 '18 07:07 kolibrizas

@kolibrizas I set up the IdentityServer3 into SwaggerDemoApi project. But got the warning like this: image And SwaggerDemoApi also got the exception that can't got configuation. Any sulotion? 1

shuangyuxiaoyi avatar Nov 23 '18 08:11 shuangyuxiaoyi