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
1 answer

Oidc-client jest.mock() is not allowed to reference any out-of-scope variables

I am setting up a test class for my auth service which usings oidc-client. When attempting to mock the function signinRedirect of oidc-client, I am getting hoisting issues and the following error is being thrown. I understand the problem but don't…
coding1223322
  • 461
  • 11
  • 26
2
votes
1 answer

IdentityServer4 oidc-client error - authority mismatch on settings vs. signin state

I have an IdentityServer4 and C# .NET Core web application behind an NGINX reverse proxy: https://id.local.domain -> http://id-local https://web.local.domain -> http://web-local I can get to and enter my credentials on the ID4 login page, but after…
2
votes
0 answers

OpenID reauthentication for signing off work in the application

I have a SPA application with some WebAPI methods that are protected with OpenID authentication. A user first signs into the SPA application, then carries out some work in the application and is then required to sign off on this work by…
2
votes
1 answer

oidc-client authentication failure: sub from user info endpoint does not match sub in access_token

I have an angular app using oidc-client to access an API that uses IdentityServer3 to provide OpenID Connect authentication. During authentication the oidc-client throws an error: sub from user info endpoint does not match sub in access_token FYI…
Endy Tjahjono
  • 24,120
  • 23
  • 83
  • 123
2
votes
1 answer

Angular2 oidc-client not clear the cookies for mvc application when i logoff from angular2 app

I have an authorization server which is currently being utlized by both my angular2 app and the mvc webapp. I have implemented authorization in angular2 app using oidc-client javascript package. Everything is working fine except logout…
Mukil Deepthi
  • 6,072
  • 13
  • 71
  • 156
2
votes
3 answers

Restricting an api resource on user level in IdentityServer4

We want to set up a general authentication service, making use of IdentityServer4, where we define a set of users that can have access to one or more api's. Users will be globally defined, but can only have access to specific api's. Maybe I'm…
gsharp
  • 71
  • 8
2
votes
1 answer

IdentityServer4 RequestedClaimTypes is Empty

In my profile service why is RequestedClaimTypes Empty? I am expecting the profile claims to be requested. And per this they should contain FamilyName and Given Name claim types. GetIdentityResources public static IEnumerable
Steven T. Cramer
  • 1,508
  • 1
  • 18
  • 34
2
votes
1 answer

Identityserver not returning User after successful signin redirect

I am using following configuration in identityserver4 using oidc-client.js. It successfully does signin redirect. But "authUser" in following always comes null even after that. What's wrong am I doing. I followed their sample application. const…
2
votes
0 answers

Issue on redux-oidc signoutRedirect

Question / Issue I'm using Identity Server for Single Sign On, my Client application is in ReactJs embedded with Redux. I'm using redux-oidc npm node module to implement the Identity Server functionality as mentioned in…
2
votes
0 answers

oidc-client-js and basic authentication

Scenario ASP.NET Core MVC (API) with IdentityServerAuthentication, Angular 2 with oidc-client-js. IdentityServer4, with ASP.NET Core Identity, as OP. Using Kestrel nginx reverse proxy - SSL termination, Basic Authentication oidc Implicit…
2
votes
2 answers

Configuring OAuth2 access token to typescript-angular2 client

I do not fully understand how to provide OAuth2 access token from a promise (oidc-client-js) to API code generated with Swagger-CodeGen. It is easy to provide constant values, but how do I change below to get the user's access token from…
carlmon
  • 396
  • 6
  • 20
2
votes
2 answers

OIDC Implicit flow - redirect uri length

I'm using OIDC with implicit code flow with response type "id_token token". Everything works great but noticed that callback url with access token, id_token, scope and session_state + domain name already contains 2033 characters. Project that I'm…
geek
  • 596
  • 8
  • 26
2
votes
1 answer

Oidc-client with IdentityServer3 - Angular2, how to logout and login properly

Here's some background, I'm using implicit flow and my token is JWT. To logout, I'm using the method call signoutRedirectCallback. I want to be able to properly logout. So that I can login as a different user. When doing so, I still have the token…
LVDev
  • 21
  • 1
  • 4
2
votes
1 answer

Cannot find name when using the constructor but can when casting

I have imported two types. import { UserManager, WebStorageStateStore } from "oidc-client"; From looking at the source, both of these are classes with constructors. I can all the constructor of the first, and can cast with the second, but I cannot…
Shaun Luttin
  • 133,272
  • 81
  • 405
  • 467
1
vote
0 answers

oidc-client.js Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('') does not match the recipient window's origin ('')

I am getting this error using oidc-client.js oidc-client.min.js:1 Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://auth.xxx.yyy.co.uk') does not match the recipient window's origin ('https://xxx.yyy.co.uk'). Where…
Alex Driver
  • 125
  • 7