projects/lib/src/token-validation/jwks-validation-handler.ts
This is just a dummy of the JwksValidationHandler telling the users that the real one has been moved to an library of its own, namely angular-oauth2-oidc-utils
Methods |
constructor()
|
validateAtHash | ||||||
validateAtHash(validationParams: ValidationParams)
|
||||||
Inherited from
NullValidationHandler
|
||||||
Defined in
NullValidationHandler:11
|
||||||
Parameters :
Returns :
Promise<boolean>
|
validateSignature | ||||||
validateSignature(validationParams: ValidationParams)
|
||||||
Inherited from
NullValidationHandler
|
||||||
Defined in
NullValidationHandler:8
|
||||||
Parameters :
Returns :
Promise<any>
|
import { NullValidationHandler } from './null-validation-handler';
const err = `PLEASE READ THIS CAREFULLY:
Beginning with angular-oauth2-oidc version 9, the JwksValidationHandler
has been moved to an library of its own. If you need it for implementing
OAuth2/OIDC **implicit flow**, please install it using npm:
npm i angular-oauth2-oidc-jwks --save
After that, you can import it into your application:
import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';
Please note, that this dependency is not needed for the **code flow**,
which is nowadays the **recommented** one for single page applications.
This also results in smaller bundle sizes.
`;
/**
* This is just a dummy of the JwksValidationHandler
* telling the users that the real one has been moved
* to an library of its own, namely angular-oauth2-oidc-utils
*/
export class JwksValidationHandler extends NullValidationHandler {
constructor() {
super();
console.error(err);
}
}