servicestack-authentication-identityserver icon indicating copy to clipboard operation
servicestack-authentication-identityserver copied to clipboard

Support for IdentityServer with .Net Core 2.0 with latest MVC package

Open littlenetcoder opened this issue 8 years ago • 2 comments
trafficstars

Hi,

I am trying to use servicestack-authentication-identityserver in my .NetCore 2.0 project but facing issue. Also i noticed dependency with Servicestack.Mvc.Core 1.0.33. Also logout functionality did not work as expected in samples provided.

littlenetcoder avatar Oct 04 '17 03:10 littlenetcoder

Hi,

The plugin hasn't been updated to support .NetCore 2.0

Can you please give more details on the logout functionality?

stuartbfs avatar Oct 04 '17 08:10 stuartbfs

Hi, In my .NETCore 2.0 project, I am trying to use IdentityServer4 in my ServiceStack self host application to protect the WebAPI. When I use the client to access the WebAPI, I could get the token but always display 401 unauthorized while calling API. I used Postman and I get the same error. Here is the snapshot of the Configure():

this.SetConfig(new HostConfig { GlobalResponseHeaders = { { "Access-Control-Allow-Origin", "*" }, { "Access-Control-Allow-Methods", "GET, POST, PUT, DELETE, OPTIONS" }, { "Access-Control-Allow-Headers", "Content-Type" }, }, DebugMode = true, WriteErrorsToResponse = true, ReturnsInnerException = true, WebHostUrl = "http://localhost:6344" });

        this.Plugins.Add(new IdentityServerAuthFeature
        {
            AuthProviderType = IdentityServerAuthProviderType.ResourcePasswordFlowProvider,
            AuthRealm = "http://localhost:5000/",
            ClientId = "Sample.Client",
            ClientSecret = "XXXXXXXXXXXXXXXX",
            Scopes = "openid Sample.ClientAPI profile email offline_access"
        });

Please note I use ResourceOwnerPasswordValidator. Has this plugin released for .net core 2.0 .?

NaveenKumarAmetek avatar Jun 28 '18 12:06 NaveenKumarAmetek