Questions tagged [oidc-client-js]

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

References

200 questions
2
votes
2 answers

Configure Silent Authentication in Open ID Connect

client type: Spa grant type: implicit or code(pkce) As a user, I want to be able to get silently authenticated if I have already logged with my identity provider. If not stay on the client side just like a guest user. And if I want to login to the…
2
votes
1 answer

Silent renew in oidc-client.js when we have extra query params

I am getting below error I am having below UserManagerSettings private getClientSettings(loginType?): UserManagerSettings { let logout; if (window.sessionStorage.getItem('loginType') === 'Internal') { logout =…
Ishika Jain
  • 949
  • 2
  • 11
  • 23
2
votes
1 answer

Pass custom HTTP header to IdentityServer 4 from oidc-client-js

I am in the process of setting up a solution with an ASP.NET Core WebApi, a Javascript client (with oidc-client-js) and an IdentityServer4 with Identity. I have followed different tutorials and guides and have come to a solution that works…
Davide De Santis
  • 922
  • 1
  • 10
  • 25
2
votes
1 answer

How do you add parameters to an IdentityServer LogoutRequest model?

I'm using the Identity oidc-client-js library and calling this.usermanager.signoutRedirect({ somedata: someObject.Id }); Then in the logout endpoint I do this with the IdentityServer interaction service var logoutRequest= await…
user3093582
2
votes
0 answers

oidc-client - signinredirect - doesn't redirect to redirect_uri

I'm using OIDC client and I'm calling below line to signin: public signinRedirect(args?: any): Promise { return this.oidcUserManager.signinRedirect(args); } After this it goes to ID server login page and after login I see it is calling…
user2608601
  • 147
  • 1
  • 10
2
votes
1 answer

Oidc client js , don't use Date.now in client

I'm using oidc-client-js in my client for one of my SPA projects. I have an identity server which is written in IdentityServer4. If I change date-time of server manually, the oidc-client-js can't validate response of server in log in user, because…
jsDevia
  • 1,282
  • 4
  • 14
  • 37
2
votes
0 answers

Do I have to use signoutRedirectCallback in oidc-client.js?

In my application for authentication I'm using IdentityServer + Angular with oidc-client.js. When I want to logout from application then following code is run: signout(): void { this.manager.signoutRedirect(); } and to handle logout from other…
DiPix
  • 5,755
  • 15
  • 61
  • 108
2
votes
1 answer

SignIn with oidc-client and identityServer4 in different domain

I have a VueJs application in localhost that use the oidc-client.js library to do the login to an IdentityServer4 server in production, in another domain. After login, the IdentityServer redirects me to the VueJs app, than I call the method…
alexm1
  • 25
  • 6
2
votes
2 answers

ReactJS with IdentityServer4 and oidc-client-js Error: "No code in response"

I am trying to get ReactJS working with IdentityServer4 via oidc-client-js library. PROBLEM I click the login button and I get redirected to IdentityServer4, once I login, I get redirect to /login-callback and then from there I get redirected to /…
J86
  • 14,345
  • 47
  • 130
  • 228
2
votes
1 answer

Log out user when idle using IdentityServer4 + oidc-client-js in Angular

On my application I have a timeout feature so when the user is idle for X minutes I want to sign out from Identity Server. My first attempt was to manually create the call without having the user to navigate to the Logout controller. This code looks…
Narshe
  • 427
  • 8
  • 22
2
votes
0 answers

Refresh User Claims without logout then login

How things are set up: i have a front end portal and the Identity Server : • Front End portal (angular) uses oidc client for authentication • When a user access the front end portal he gets redirected to the Identity Server to login • After a…
2
votes
1 answer

Vuepress oidc-client preventing build

It looks like Vuepress is made for public docs, but we decided to add client and server security to protect some of the doc pages. But unfortunately although oidc-client (https://github.com/IdentityModel/oidc-client-js/wiki) works during dev, it…
Teddy
  • 304
  • 5
  • 17
2
votes
2 answers

SilentRenewService._tokenExpiring: Error from signinSilent: Frame window timed out t.error

I am following the pluralsight course Securing Angular Apps with OpenID Connect and OAuth2 to get up and running with oidc-client in Angular, but I have come across an issue with the silent refresh token, which…
tony09uk
  • 2,841
  • 9
  • 45
  • 71
2
votes
2 answers

Identity Server 4 is not redirecting to Angular app after login

I am using oidc-client in angular. following this Tutorial import { UserManager, UserManagerSettings, User } from 'oidc-client'; My Client: export function getClientSettings(): UserManagerSettings { return { authority:…
2
votes
1 answer

Vue.js SPA with vuex-oidc has redirect loops on release version

I have a single page application built in Vue.js 2.5 which also has OAuth2.0 support using IdentityServer4 + vuex-oidc and runs on an nginx server. Everything with my setup works fine when running the app on webpack dev server, but the release…
mmbrian
  • 1,672
  • 2
  • 14
  • 26