Skip to content

Commit 24940aa

Browse files
Update lib to version 9.x
Temporarily switch to using no validation handler.
1 parent 7a9853e commit 24940aa

File tree

3 files changed

+8
-14
lines changed

3 files changed

+8
-14
lines changed

package-lock.json

Lines changed: 3 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"@angular/platform-browser": "^9.0.5",
1818
"@angular/platform-browser-dynamic": "^9.0.5",
1919
"@angular/router": "^9.0.5",
20-
"angular-oauth2-oidc": "^8.0.4",
20+
"angular-oauth2-oidc": "^9.0.0",
2121
"core-js": "^2.6.11",
2222
"rxjs": "^6.5.4",
2323
"tslib": "^1.11.1",

src/app/core/core.module.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { HttpClientModule } from '@angular/common/http';
22
import { ModuleWithProviders, NgModule, Optional, SkipSelf } from '@angular/core';
3-
import { AuthConfig, JwksValidationHandler, OAuthModule, OAuthModuleConfig, OAuthStorage, ValidationHandler } from 'angular-oauth2-oidc';
3+
import { AuthConfig, NullValidationHandler, OAuthModule, OAuthModuleConfig, OAuthStorage, ValidationHandler } from 'angular-oauth2-oidc';
44

55
import { authConfig } from './auth-config';
66
import { AuthGuardWithForcedLogin } from './auth-guard-with-forced-login.service';
@@ -9,8 +9,8 @@ import { authModuleConfig } from './auth-module-config';
99
import { AuthService } from './auth.service';
1010

1111
// We need a factory since localStorage is not available at AOT build time
12-
export function storageFactory() : OAuthStorage {
13-
return localStorage
12+
export function storageFactory(): OAuthStorage {
13+
return localStorage;
1414
}
1515

1616
@NgModule({
@@ -31,7 +31,7 @@ export class CoreModule {
3131
providers: [
3232
{ provide: AuthConfig, useValue: authConfig },
3333
{ provide: OAuthModuleConfig, useValue: authModuleConfig },
34-
{ provide: ValidationHandler, useClass: JwksValidationHandler },
34+
{ provide: ValidationHandler, useClass: NullValidationHandler },
3535
{ provide: OAuthStorage, useFactory: storageFactory },
3636
]
3737
};

0 commit comments

Comments
 (0)