Questions tagged [oidc-client-js]

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

References

200 questions
0
votes
0 answers

Sign out without redirect using oidc-client-ts

Is there a way to logout without doing a popup or redirect to the authorization server using oidc-client-ts? I can sign in/out with redirects, but if the session has expired or the token for some reason is invalid, I would like to sign out the user…
Kikkomann
  • 386
  • 5
  • 20
0
votes
0 answers

Keycloak login page refresh logs out from other tab

we are using OIDC-client library from react js side and IS4 using keycloak as login provider, open the two tabs and open the same url[e.g. xyz.com] when 1st tab request the url, IS4 provides the login page from keycloak. user log in with code…
0
votes
1 answer

Authorize user by OpenID in Vuejs

I use oidc-client in basic VueJs project, IDP server informations are correctly set in SecurityServices.js, here is my oidc config: var mgr = new Oidc.UserManager({ userStore: new Oidc.WebStorageStateStore(undefined), authority:…
MaNa
  • 55
  • 2
  • 10
0
votes
0 answers

OIDC client silent refresh multiple times

Here is my client config: const settings = { userStore: new WebStorageStateStore({ store: window.localStorage }), client_id: 'authtest', automaticSilentRenew: true, accessTokenExpiringNotificationTime: 10, …
0
votes
0 answers

How to invalidate previous session in oidc-client-js if user login's again in different browser?

I am using aws congnito and oidc-client-js for user authentication. If user logins again in different browser how to invalidate sessions if he is previously logged in ?
Ram pravin
  • 21
  • 3
0
votes
3 answers

OIDC client + Identity Server 4, setting max_age silent token reniew not working

I have an angular 10 application with OIDC JS client as open id connect. On browser or tab close I need to redirect the user back to the login page. By setting max_age to the UserManager the functionality is working fine, however, silent token…
San Jaisy
  • 15,327
  • 34
  • 171
  • 290
0
votes
1 answer

Client application (oidc) is redirected to login when IdentityServer4 is restarted

I have an implementation of IdentityServer with an external Provider to authenticate and a client application that implements oidc implicit flow with the oidc-client library. All works correctly (login, logout, refresh token, ecc…) until the…
0
votes
0 answers

How to pass access token in cookie?

Here is my WebAPI configuration: services.AddAuthentication("Bearer") .AddIdentityServerAuthentication("Bearer", options => { options.Authority = "https://localhost:44305/"; options.ApiName = "ApiOne"; …
Vlad
  • 3,001
  • 1
  • 22
  • 52
0
votes
1 answer

OIDC-Client-js: How to validate the id_token

I need to validate the id_token I receive after authenticating with Auth0 on my website. I know that I need to use the key in x5c from the jwks_uri. But what I don't know is if this information is stored somewhere by the OIDC-client-js component…
Piko
  • 11
  • 4
0
votes
0 answers

Eror: no state in response oidc-client.js

I am getting this error "No state in response" after I log out. It comes to the callback url , stays there for sometime and then errors out .BUT After refresh , the state gets appended to the URL and page lands me on the intended login page with a…
0
votes
1 answer

How do you send a client secret to IdentityServer4 using oidc-client-js

I'm pretty new to implementing authentication/authorization in my applications, so I might be missing something obvious here. I am using Angular and oidc-client.js to communicate with my STS (IdentityServer4), and I'm setting up my angular app to…
DJBrunelle
  • 25
  • 7
0
votes
1 answer

Logout from client doesn't work. Identity Server4

I am currently implementing OAuth Server with IdentityServer4 using .NET Core 3.1 and React for client SPA. When I click logout I get the following: React JS: const handleLogout = async () => { const token =…
AlexZholob
  • 317
  • 1
  • 16
0
votes
1 answer

How to intercept oidc client js token call with Authorization code

I have a React application where I am using oidc-client.js for the login flow. I am using the code flow where I will first receive the authorisation code and with which I'll be fetching the token using the oidc client js. I need to pass an…
Severus
  • 61
  • 1
  • 4
0
votes
1 answer

How to configure our own Id server with Ionic vue 3(Ionic vue beta)

How to configure our own Id server with Ionic vue 3(Ionic vue beta) and show a login page and redirect back to our app after a successful login.
0
votes
1 answer

identityserver4 adding api resource causing unauthorized requests

I have an application that is using identityServer4 for authentication and Angular10(with oidc-client-js) for front-end and an ASP.NET Core API as the resource API. everything was working fine until I added the following line to the API startup…
Sarahbe
  • 123
  • 1
  • 16