Questions tagged [oidc-client-js]

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

References

200 questions
15
votes
3 answers

IdentityServer4 - How to Implement Impersonation

I have a requirement of allowing our internal support users to impersonate our customer users. I'm currently using IdentityServer4, Implicit Flow and OIDC Client. Resources found so far. [Question]IdentityServer4 user impersonation #853 Generate…
15
votes
8 answers

IdentityServer4 PostLogoutRedirectUri null

I am attempting to get the implicit flow working for IdentityServer4. Login and logout work correctly, however the PostLogoutRedirectUri is coming back null, despite setting the value where it needs to be set. What I would like is for the logout…
DoubleTK
  • 183
  • 1
  • 1
  • 8
13
votes
2 answers

No state in response after callback in oidc-client-js

I think this is an error related to angular 5.2.8 & 6 . With angular 5.2.7 work fine. I create a ng5 branch and update angular to latest 5.2.8 and the error com in! anybody can direct me to an angular 5.2.8 and later sample with oidc-client-js ?
Mike Anderson
  • 738
  • 1
  • 8
  • 23
12
votes
1 answer

Retrieving state data with oidc-client

How to keep the original url that the user was navigating to? Say I have an unauthenticated user navigates to http://localhost:9000/customer/123 To authenticate the user I would do a: // in my app.js new…
Larsi
  • 4,654
  • 7
  • 46
  • 75
11
votes
2 answers

OidcClient.readSigninResponseState: No matching state found in storage - oidc-client-js (Angular)

I am using oidc-client library for integrating with Azure AD in my Angular(9) application. signinRedirect() & signinSilent() functions are working as expected. But for signinPopup(), it is getting the access token successfully in the browser url…
11
votes
6 answers

Silent refresh not working with OIDC-client in Angular 5

I have an issue with the silent refresh with oidc-client. The signin works fine and I'm able to acquire a token. However, the silent refresh doesn't fire, nothing happens. When I subscribe to methods that check token expiry (methods in…
Anthony Giretti
  • 327
  • 1
  • 2
  • 8
11
votes
1 answer

Oidc-Client js - Frame window timed out - Silent sign in

In app.js I hava an AuthorizationInterceptorthat checks if user is logged in. When the users token expires it hits the err condition and errors with Frame window timed out (see below) and then goes in to a redirect loop. I want to to do a silent…
Paolo B
  • 3,026
  • 5
  • 21
  • 43
10
votes
2 answers

No user in signinSilentCallback using identityserver and oidc client of javascript

I am getting user undefined in following code. I have already authenticated user from MVC. But when I use signinSilentCallback to get detail of that user, it is getting undefined using oidc-client in js. It doesn't give any error as well. …
Anonymous Creator
  • 2,968
  • 7
  • 31
  • 77
10
votes
1 answer

What is a ProfileService/When is a ProfileService executed?

I've been playing with IdentityServer4. Absolutely love it. I've been going through the tutorials on your site, specifically https://identityserver4.readthedocs.io/en/release/quickstarts/7_javascript_client.html I have created a Profile Service that…
Mardoxx
  • 4,372
  • 7
  • 41
  • 67
9
votes
1 answer

How to get Logging using oidc-client with Angular

I am using oidc-client with angular 7, and I want to enable logging. The doc suggests that I can do the following Oidc.Log.logger = console; I have not been able to make this work as Oidc does not appear to be on the window object??
Douglas Woods
  • 824
  • 2
  • 9
  • 25
9
votes
2 answers

signoutRedirect of oidc-client-js against Auth0 returns no end session endpoint

I've successfully used the oidc-client-js library by Brock Allen to authenticate my SPA app with Auth0 acting as my Identity Provider. However, when I try to use the library to sign the user out mgr.signoutRedirect({state: "my test"}), I receive an…
RHarris
  • 10,641
  • 13
  • 59
  • 103
8
votes
1 answer

Oidc client js: silent access token renew breaks because identity server authentication cookie sliding expiration doesn't work

I'm working with an angular SPA which implements authentication by using identity server 4 and oidc client js. Something is not working at the silent access token renew level. The expected behavior is an automatic renew of the access token, which…
Enrico Massone
  • 6,464
  • 1
  • 28
  • 56
8
votes
4 answers

Identity Server 4 Silent Renew ErrorResponse: login_required

I have cloned the repo from the redux-oidc-example and it works for the most part but after a few hours it gives the following error: Action payload: ErrorResponse: login_required at new e (oidc-client.min.js:1) at t [as…
Attiqe
  • 646
  • 1
  • 10
  • 22
8
votes
0 answers

oidc-client isLoggedIn()

What is the most concise and accurate way to determine isLoggedIn() with odic-client? Much like the Angualr2 example my first method was: // return true if user (token) exists. public isLoggedIn(): Promise { return…
Wilhelmina Lohan
  • 2,803
  • 2
  • 29
  • 58
7
votes
1 answer

OIDC and PWA (add to home screen)

Update: Basically the same issue as Standalone PWA breaks login but on iOS. If you add a web app to the home screen, Chrome on android shares the local storage with the same domain in the browser. You can test this by going to…
1
2 3
13 14