You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import { Component, OnInit } from '@angular/core';
import { OAuthService } from 'angular-oauth2-oidc';
import { JwksValidationHandler } from 'angular-oauth2-oidc';
import { authConfig } from './auth.config';
@Component({
selector: 'app-auth',
templateUrl: './auth.component.html',
styleUrls: ['./auth.component.css']
})
export class AuthComponent implements OnInit{
constructor(private oauthService: OAuthService) {
this.configureWithNewConfigApi();
}
ngOnInit() {
}
private configureWithNewConfigApi() {
this.oauthService.configure(authConfig);
this.oauthService.tokenValidationHandler = new JwksValidationHandler();
this.oauthService.loadDiscoveryDocumentAndTryLogin();
}
public login() {
this.oauthService.initImplicitFlow();
}
}
and my AuthConfig:
import { AuthConfig } from 'angular-oauth2-oidc';
export const authConfig: AuthConfig = {
// Url of the Identity Provider
issuer: 'https://xxxxxxxxxx',
redirectUri: 'https://xxxxxxxxxx/auth/',
clientId: 'xxxxxxxxxx',
// set the scope for the permissions the client should request
// The first three are defined by OIDC. The 4th is a usecase-specific one
scope: 'openid',
strictDiscoveryDocumentValidation: false,
userinfoEndpoint: 'https://xxxxxxxxxx/userinfo',
// the corproot oauth server doen't return the 'at_hash' property
// inside the claims.
disableAtHashCheck: true,
// nonceStateSeparator: ',',
// clearHashAfterLogin: false,
}
it would be really nice if this feature would be available in v5. :-)
many thanks and regards
The text was updated successfully, but these errors were encountered:
I've been using Implicit Flow and with your last update @manfredsteyer , I wanted to switch on the more secure Authorization Code Flow and I met this error... Cannot go further.
I think with the passing of time, merging of related PRs, and releases of newer versions this may be working as intended again? Going to presume this works in v9+ again, please:
if it doesn't work as expected in v9+ open a fresh bug report issue with a minimal repro
if it doesn't work in older versions, consider either updating your app, or forking the library and backporting the fix yourself (I don't think there's bandwidth on the project here to do that)
Hello Guys,
In v4.0.3 the parameter
disableAtHashCheck: true
is working fine.we are using cloudfroundy which does not add the
at_hash
property to the claims uaa.After updating the Lib. to v5.0.2 i got this error:


And here the failing check.
Here are my project configs:
package.json:
my auth.component:
and my AuthConfig:
it would be really nice if this feature would be available in v5. :-)
many thanks and regards
The text was updated successfully, but these errors were encountered: