Search code examples
nancyidentityserver4

Nancy and IdentityServer4 on Net Core?


Great docs and samples for IdentityServer4. And likewise for Nancy. But running into some issues getting Nancy + IdentityServer4 together. Anyone done this yet? When I add this to the API Startup:

        app.UseIdentityServerAuthentication(new IdentityServerAuthenticationOptions
        {
            Authority = "http://localhost:55555",
            RequireHttpsMetadata = false,

            ApiName = "MyAPI"
        });

It fails to resolve UrlEncoder when the service starts up. Plus I'm not sure how to configure the authorization requirements in Nancy modules. Any direction appreciated.


Solution

    1. Add Url encoder here
    2. Identity setup
    3. Module setup