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
2 answers

Angular OpenID Code flow with PKCE implementation

I'm start learning and implementing an authorization / authentication on my simple SPA using Angular 8 as my client web app. I use the oidc-client-js library for my client and identityserver4 for my STS. I'm following the sample provided of…
1
vote
0 answers

oidc-client popup window as new tab in browser instead

Attempting to implement OidcClient.signinPopup() but have it open in a tab. In the UserManagerSettings I've set popupWindowFeatures property to null but it continues to open as window rather than new tab in chrome.
John Churchley
  • 434
  • 4
  • 17
1
vote
1 answer

webpack build oidc-client results in Oidc.Usermanager is not a constructor

I have an angularjs app in which I have the oidc-client working. When I launch my angularjs application from Visual Studio. I have not problems with the oidc-client. everything is working. But when I use Webpack to bundle it, its giving me a strange…
Henkie85
  • 197
  • 2
  • 15
1
vote
1 answer

Silent Renew with oidc-client cross domain, if third party cookies are blocked

We have two SPA Application, which interact with the same IdentityProvider. We implemented the oidc-client and SSO worked fine. Now we recognized that silent authentication is not working if third party cookies are blocked, which is a big…
1
vote
1 answer

Redirect to original URL after login

I am using Identity Server 4 with ASP.NET core 2.2, Angular 7 and OICD-Client.js On the client application I am redirected to login after I try to access a protected route, for example: /protected-route After I login I am redirected to the Angular…
Miguel Moura
  • 36,732
  • 85
  • 259
  • 481
1
vote
1 answer

Authorization Flow with PKCE : "Showing Login: user is not authenticated"

We have setup a vueJs spa running on node on its own domain. We have setup an asp.net core IdentityServer4 application on another domain. We are trying to use Authorization code PKCE flow. We have looked at a few articles, but most have a different…
DoctorPrisme
  • 103
  • 2
  • 11
1
vote
1 answer

IdentityServer 4 User Registration - Where to place it?

I have an Angular 7 app that talks to IS4 via the oidc-client and also talks to a secured API. Everything is fine from the login and interaction point of view, however I wanted to implement user registration and I have read different opinions in…
1
vote
1 answer

Cookiestorage does not work for oidc-client on a SSR React implementation

How can I run a React application with the oidc-client in a SSR environment? I am working on a React implementation which uses the oidc-client (v 1.7.1). In a non-SSR environment the solution is fine. But one of our requirements is that the solution…
1
vote
1 answer

React OIDC-Client IE Promise is Undefined

I am getting "'Promise' is undefined" error on IE 11, Chrome and Firefox are not giving this error. I am using below package for OIDC client, I already submitted an issue to that author as…
1
vote
1 answer

Transfer the authenticated user to a SPA without forcing them to re-enter their credentials

This is my current setup: IdentityServer4 API (Bearer authentication) SPA page (oidc-client implicit flow redirected to IdentityServer4 Quickstart UI) Native application (written i C#) The native application already have the users credentials. I…
1
vote
1 answer

Auto-Logout after failed checksession using Identity Server 4, VueJS, and oidc-client

I'm testing both server and client on my machine and I'm experiencing the following: I log in to the client fine, do some work, close the browser without logging out. Then I open the client again and I am still logged in (expected) but then a minute…
CSharper
  • 53
  • 1
  • 9
1
vote
1 answer

IdentityServer Session cookie is not sliding

I am facing a weird problem. I am able to do the silent renew, but my IdP cookie is getting sliding. More into the problem... I have an IdP session cookie (IdentityServer) lifetime set to expire in 15 minutes and I kept the same time for the access…
1
vote
1 answer

How to get access_token from Identity Server hitting token endpoint, passing credentials from react client using fetch?

I need to get access token from Identity Server through an API call from react client (fetch). I don't want to load the login UI from Identity Server (implicit flow), enter credentials, redirect to the redirect_uri and then get the access_token from…
MAK
  • 1,915
  • 4
  • 20
  • 44
1
vote
1 answer

oidc-client.js raises "No authority passed" error

I'm a new comer for SSO. Recently I'm focusing on a project which is using OIDC. I try to use oidc-client to solve the problem. Here is my settings.(I erase the detail url, but they are effective). var mgr = new Oidc.UserManager({ userStore: new…
1
vote
1 answer

Session timeout using SPA and oidc-js

I am using angular 5 with oidc-client and identity server 4. Is session timeout supported in oidc-client or i need to implement it manually ? By Session Timeout i mean, the user will be logged out after sometime of inactivity
Jek
  • 441
  • 7
  • 16