[ApiAuthorization] Disables pop-up logout by default
* There is an issue in Edge that prevents it from working. * Can be enabled by setting 'popUpDisabled = false' in 'authorize.service.ts'
This commit is contained in:
parent
8417429b9b
commit
61dc5fbe28
|
|
@ -121,6 +121,10 @@ export class AuthorizeService {
|
||||||
|
|
||||||
public async signOut(state: any): Promise<IAuthenticationResult> {
|
public async signOut(state: any): Promise<IAuthenticationResult> {
|
||||||
try {
|
try {
|
||||||
|
if (this.popUpDisabled) {
|
||||||
|
throw new Error('Popup disabled. Change \'authorize.service.ts:AuthorizeService.popupDisabled\' to false to enable it.');
|
||||||
|
}
|
||||||
|
|
||||||
await this.ensureUserManagerInitialized();
|
await this.ensureUserManagerInitialized();
|
||||||
await this.userManager.signoutPopup(this.createArguments());
|
await this.userManager.signoutPopup(this.createArguments());
|
||||||
this.userSubject.next(null);
|
this.userSubject.next(null);
|
||||||
|
|
|
||||||
|
|
@ -98,6 +98,10 @@ export class AuthorizeService {
|
||||||
async signOut(state) {
|
async signOut(state) {
|
||||||
await this.ensureUserManagerInitialized();
|
await this.ensureUserManagerInitialized();
|
||||||
try {
|
try {
|
||||||
|
if (this._popUpDisabled) {
|
||||||
|
throw new Error('Popup disabled. Change \'AuthorizeService.js:AuthorizeService._popupDisabled\' to false to enable it.')
|
||||||
|
}
|
||||||
|
|
||||||
await this.userManager.signoutPopup(this.createArguments());
|
await this.userManager.signoutPopup(this.createArguments());
|
||||||
this.updateState(undefined);
|
this.updateState(undefined);
|
||||||
return this.success(state);
|
return this.success(state);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue