Skip to content

Commit a89ebdd

Browse files
Update to version 9.1.0 of the library
Note that there was a small breaking change from 9.0.0 to 9.1.0. If you were calling EncodeURIComponent on the state passed along to the IDS, you now should _not_ do this anymore. See also: - manfredsteyer/angular-oauth2-oidc#771 - manfredsteyer/angular-oauth2-oidc#415 - manfredsteyer/angular-oauth2-oidc@71b705c
1 parent 3783ba7 commit a89ebdd

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

package-lock.json

Lines changed: 9 additions & 4 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.1.0",
1818
"@angular/platform-browser-dynamic": "^9.1.0",
1919
"@angular/router": "^9.1.0",
20-
"angular-oauth2-oidc": "^9.0.0",
20+
"angular-oauth2-oidc": "^9.1.0",
2121
"angular-oauth2-oidc-jwks": "^9.0.0",
2222
"core-js": "^2.6.11",
2323
"rxjs": "^6.5.4",

src/app/core/auth.service.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,9 @@ export class AuthService {
158158
}
159159

160160
public login(targetUrl?: string) {
161-
this.oauthService.initImplicitFlow(encodeURIComponent(targetUrl || this.router.url));
161+
// Note: before version 9.1.0 of the library you needed to
162+
// call encodeURIComponent on the argument to the method.
163+
this.oauthService.initImplicitFlow(targetUrl || this.router.url);
162164
}
163165

164166
public logout() { this.oauthService.logOut(); }

0 commit comments

Comments
 (0)