IdentityServer / IdentityServer4

OpenID Connect and OAuth 2.0 Framework for ASP.NET Core
https://identityserver.io
Apache License 2.0
9.23k stars 4.01k forks source link

Authentication performance and new tab authorization #5360

Closed BlackBasha closed 2 years ago

BlackBasha commented 2 years ago

Question

Hi, I am facing a problem and I need your help please. I am using identity server version 3.1 and angular 8 for the front end and .net core web api 3.1 for the backend, also I am using oidc-client library to handle the windows authentication

[(https://medium.com/@arv9135/angular-10-spa-and-identity-server-4-authorization-code-flow-with-pkce-with-cookie-storage-a572a8baa4ea) ] but here they used different angular library which I cannot use because I build my infrastructure upon the oidc-client library. Can I do the same thing with oidc-client lib? is it safe to save the token inside the cookies? Is there another way to not request the token every time? I found that we can use refresh token but i am not sure? could you please show me the way by dropping me a link

Minimal working example

forntend code : private manager = new UserManager(getClientSettings(this.authConfig));

export function getClientSettings(authConfig: AuthConfig): UserManagerSettings { return { authority: 'http://localhost:5000/' client_id: 152 redirect_uri:'http://localhost:4200/auth-callback', post_logout_redirect_uri: 'http://localhost:4200/', response_type: authConfig:'code', scope: 'openid profile api.read', filterProtocolClaims: true, loadUserInfo:true };

identity server Client definition: ClientId = "152", ClientName = "Test", AllowedGrantTypes = GrantTypes.Code, RequirePkce = true, RequireClientSecret = false, AllowedScopes = new List { "openid", "profile", "api.read" }, RedirectUris = new List { "http://localhost:4200/auth-callback" }, PostLogoutRedirectUris = new List { "http://localhost:4200/" }, AllowedCorsOrigins = new List { "http://localhost:4200" }, AllowAccessTokensViaBrowser = true, RequireConsent = false }

Relevant parts of the log file

   <log goes here>
stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Questions are community supported only and the authors/maintainers may or may not have time to reply. If you or your company would like commercial support, please see here for more information.

github-actions[bot] commented 2 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.