Questions tagged [oidc-client-js]

Use oidc-client-js for questions related to the certified OpenID Connect (OIDC) JavaScript library

References

200 questions
1
vote
1 answer

identity server 4 + oidc-client-js logout redirect

I'm trying to implement OpenId and oidc-client-js in react. Right now I'm stuck in implementing logout function. From what I understand, I need to set the post_logout_redirect_uri and use signoutRedirect() to logout the user. Logging out the user…
Wreeecks
  • 2,186
  • 1
  • 33
  • 53
1
vote
1 answer

Logout user after sliding refresh token lifetime expired

We are using IdentityServer4 and the oidc-client-js library for angular. We noticed that the token is renewed automatically which is fine. But we want the user to be signed out, after the SlidingRefreshTokenLifetime is expired. We have set the…
Snaketec
  • 471
  • 2
  • 14
1
vote
0 answers

Oidc-client-js trigger login when app start.What is the correct way?

i am using identity server 4 and oidc-client-js for auth, with angular frame work. I faced it this issue, I am trying to trigger login redirect when application start. First i tried this code; this.authService.userManager.getUser().then((user) => { …
1
vote
1 answer

Erratic Signing Out with IdentityServer 4

We have users complaining because they are redirected to the login page of the Identity Server while in the middle of their work (and thus losing their current work). We have endeavoured to configure a sliding expiration, so I'm not sure why this is…
onefootswill
  • 3,707
  • 6
  • 47
  • 101
1
vote
3 answers

The specified 'redirect_uri' is not valid for this client application

I'm using OIDC client and I'm calling below line to siginin, await this.userManager.signinRedirect(this.createArguments(state)); return this.redirect(); after this I see in the network tab it is navigated…
1
vote
1 answer

Run two instances of a react application using OAuth2 in the same browser

I have two applications using the same authentication and authorization service. App one is for user management(can only be accessed by the system administrator), and App 2 is for performing tasks and can only be accessed by users added by the…
1
vote
0 answers

angular-auth-oidc-client issue while loading application

started getting this issue while loading app, initially it was not happening. any idea? Thanks in advance Getting auth well known endpoints failed on start [n] angular-auth-oidc-client.js:169 Getting auth well known endpoints failed on start…
1
vote
3 answers

this.user is undefined when fetch data from app.component in angular -oidc-client

I am using oidc-client.js in my angular project. Right now users could log-in and log out and it works fine. the only problem is that when I want to call a service in app.component, in the interceptor the user is not authenticated. auth.service is…
osman Rahimi
  • 1,427
  • 1
  • 11
  • 26
1
vote
1 answer

OIDC js library reponse cookies are not stored and not attaching for subsequent requests

I am using authcodeflow with PKCE. Using OIDC js library in the frontend, making calls to adfs getting an auth code and then calling my backend api. The backend api which calls adfs server get the access token and the backend api returns the token…
1
vote
1 answer

AccessTokenLifeTime expiration- Identity server code flow

I have an ASP.NET Core application with IdentityServer4 for authentication and authorization. I am using oidc-client with Angular 10 for the front-end. The problem is my application never logs the user out even after the token is expired. it will be…
Sarahbe
  • 123
  • 1
  • 16
1
vote
1 answer

automaticSilentRenew not working for angular oidc-client library

I'm using "oidc-client": "1.10.1" for oidc authentication, below is my configuration for the userManager const settings = { authority: (window as any).__env.auth.authority, //OAuth 2.0 authorization endpoint of the OpenID Provider …
1
vote
1 answer

How to make Angular Client to inform Identity Server which login method to use?

I am using IdentityServer 4 with an Angular 10 client that uses OIDC Client JS: To redirect a user for signin I am calling signinRedirect on the Angular's client: UserManager.signinRedirect(args) That redirects to IdentityServer 4…
Miguel Moura
  • 36,732
  • 85
  • 259
  • 481
1
vote
1 answer

How to retrieve user info with Azure AD scopes and oidc-client.js?

I'm confused how I can get access tokens and user info details when using azure ad scopes with oidc-client.js. I have the following scope against my app in the portal... I then have my user manager settings set up as follows.... var settings:…
Konzy262
  • 2,747
  • 6
  • 42
  • 71
1
vote
1 answer

oidc-client-js double encoding acr_values?

I'm using oidc-client-js in an Angular application and would like to use the acr_values to pass an IDP value to Identity Server 4. (Identity Server is our primary token service, but we have configured it to use Okta as an external provider for one…
jefftrotman
  • 1,059
  • 7
  • 16
1
vote
1 answer

Promisse in constructor don't finish before method runs in angular 10

promise from oidc-client in angular 10 constructor is taking too long to resolve, the isLoggedIn function is being called before the constructor places de value in the user variable. this is my code: import { UserManager, UserManagerSettings, User }…