Skip to content

Commit 62ba3b2

Browse files
Properly implements openUri for implicit flow. From pull request manfredsteyer#369
1 parent 0274cf5 commit 62ba3b2

File tree

2 files changed

+23
-11
lines changed

2 files changed

+23
-11
lines changed

package-lock.json

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

projects/lib/src/oauth-service.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1197,9 +1197,7 @@ export class OAuthService extends AuthConfig {
11971197
}
11981198

11991199
this.createLoginUrl(additionalState, loginHint, null, false, addParams)
1200-
.then(function (url) {
1201-
location.href = url;
1202-
})
1200+
.then(this.config.openUri)
12031201
.catch(error => {
12041202
console.error('Error in initImplicitFlow', error);
12051203
this.inImplicitFlow = false;
@@ -1766,7 +1764,7 @@ export class OAuthService extends AuthConfig {
17661764
(this.logoutUrl.indexOf('?') > -1 ? '&' : '?') +
17671765
params.toString();
17681766
}
1769-
location.href = logoutUrl;
1767+
this.config.openUri(logoutUrl);
17701768
}
17711769

17721770
/**

0 commit comments

Comments
 (0)