servicestack-authentication-identityserver
servicestack-authentication-identityserver copied to clipboard
Support for IdentityServer with .Net Core 2.0 with latest MVC package
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.
Hi,
The plugin hasn't been updated to support .NetCore 2.0
Can you please give more details on the logout functionality?
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 .?