Questions tagged [angular-auth-oidc-client]

Angular Library for OpenID Connect & OAuth2

Angular Library for OpenID Connect & OAuth2

For more information, see

50 questions
4
votes
0 answers

Handling cookie not found error with oidc and keycloak

We have a Keycloak 18.0.2 with realms integrated to external IdP (Okta / Ping / Azure). In one realm we started seeing lots of IDENTITY_PROVIDER_LOGIN_ERROR / cookie_not_found in login events. And had users reporting that they were only able to…
4
votes
0 answers

Angular angular-auth-oidc-client identity4 SLO SSO Logout from all clients not working

I could not achieve single signout from all clients in angular. The code I used is on below. The logout function is calling from angular app and signoff from the current application but it is not signout from all client (other angualr applications…
3
votes
0 answers

How does silentRenew and and useRefreshToken work in Angular auth oidc?

The project I am currently working on has this configuration: auth: { silentRenew: true, maxIdTokenIatOffsetAllowedInSeconds: 700, useRefreshToken: true, renewTimeBeforeTokenExpiresInSeconds: 60, } I think by setting silentRenew and…
zhinee
  • 105
  • 1
  • 10
3
votes
4 answers

B2C authentication not returning access_token

I am trying to implement Authorisation Code Flow with PKCE an angular project. I am using angular-auth-oidc-client. We already have an existing IdentityServer4 based in-house implementation that the the client works well against, but we are now…
2
votes
3 answers

What is the point of PostLogoutRedirectUri in Open Id/OAuth2.0 logout?

I've been using Identity Server 4.0 as my OpenId Connect provider. I can setup clients in Identity Server with Redirect Uris and Post Logout Redirect Uris. I've also been using the angular-auth-oidc-client to login/logout via the Identity…
2
votes
2 answers

How can i mock angular-auth-oidc client to return fake data

How can i mock angular-auth-oidc-client to return some fake token using karma-jasmine. Below is the code that i need to write a unit test case. getToken() { return this.oidcSecurityService.getToken(); }
1
vote
0 answers

Show error message when angular-auth-oidc-client redirects to /unauthorized page

The IdentityServer returns 401 if the token request validator returns false. It returns with an error message. Using angular-auth-oidc-client, with response type is code, from SPA redirects to authority and redirects to /unauthorized, in the console…
Steve Lam
  • 979
  • 1
  • 17
  • 40
1
vote
3 answers

Authorization based on roles

Is there a way to easily handle authorization based on roles with the lib angular-auth-oidc-client? As soon as a user is on the site, I want to identify them, so I use the auto-login-all-routes guards, and this far everything is ok for me. But I'd…
1
vote
3 answers

how to use msal.js 2.x (msal-browser) in angular project to implement authorization code flow using PKCE?

I want to use msal.js 2.x (msal-browser) in an angular project to implement authorization code flow using PKCE. I am using Azure Active directory as an IAM. Please guide me if I am using the correct library or should I use a different library?
1
vote
2 answers

angular-auth-oidc-client logout not working

I am using angular-auth-oidc-client lib for authenticating my app with keycloak as the identity server.i am able to login into the app however the logout functionality is not working. I've read the docs and am using the same call for logout but it…
wazza
  • 173
  • 5
  • 15
1
vote
1 answer

Set custom headers to angular-auth-oidc-client token/endsession calls

I know you can add custom parameters to the authorize call as: const parameters: any = { resource: "ABCD" }; this.oidcSecurity.setCustomRequestParameters(parameters); How to add custom request headers? I am using response_type: 'code'. Nothing…
1
vote
0 answers

angular-auth-oidc-client v10.0.2 not working in IE

I am using angular-auth-oidc-client version 10.0.2 in my angular 9 project. Everything works fine on chrome however, If i turn the silent renew off using silent_renew:false and remove the silent_renew_url, the application works fine on IE But if i…
1
vote
1 answer

Get Claims in Password Flow as well as Implicit

I have an Angular 9 web application connected via the oidc-client to Identity Server 4 and an API using Implicit flow. When I get the authenticated user I can see several claims I want for the site such as the email address, the user name or the…
1
vote
0 answers

identity server 3 session is always unchanged even after logout

I am using Identity Server 3 and have multiple angular 8 application as clients. At client side I am using "angular-auth-oidc-client" library to implement SSO. I have below configuration in app.module. BUT onCheckSessionChanged never triggered...…
1
vote
1 answer

Why can I still request an access token if refresh token has expired?

I have a question related to refresh tokens. I have configured my Angular Client in Identity Server as follows: RefreshTokenUsage = TokenUsage.OneTimeOnly, AccessTokenLifetime = 30, AbsoluteRefreshTokenLifetime = 3600, RefreshTokenExpiration =…
1
2 3 4