witspry-auth-ng-client 1.3.5 → 1.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -203,7 +203,12 @@ function handle401Error(
|
|
|
203
203
|
// Redirect to logout route if configured
|
|
204
204
|
if (config.logoutRedirectRoute) {
|
|
205
205
|
logInfo(logLevel, `Redirecting to logout route: ${config.logoutRedirectRoute}`);
|
|
206
|
-
router.navigate([config.logoutRedirectRoute]
|
|
206
|
+
router.navigate([config.logoutRedirectRoute], {
|
|
207
|
+
queryParams: {
|
|
208
|
+
redirect_url: config.redirectUri,
|
|
209
|
+
client_id: config.clientId
|
|
210
|
+
}
|
|
211
|
+
});
|
|
207
212
|
}
|
|
208
213
|
} else {
|
|
209
214
|
logInfo(logLevel, 'Network/server error, not clearing tokens');
|
|
@@ -821,7 +821,12 @@ export class OAuth2Service implements OnDestroy {
|
|
|
821
821
|
// Redirect to logout route if configured
|
|
822
822
|
if (this.config.logoutRedirectRoute) {
|
|
823
823
|
this.logInfo('Redirecting to logout route: ', this.config.logoutRedirectRoute);
|
|
824
|
-
this.router.navigate([this.config.logoutRedirectRoute]
|
|
824
|
+
this.router.navigate([this.config.logoutRedirectRoute], {
|
|
825
|
+
queryParams: {
|
|
826
|
+
redirect_url: this.config.redirectUri,
|
|
827
|
+
client_id: this.config.clientId
|
|
828
|
+
}
|
|
829
|
+
});
|
|
825
830
|
}
|
|
826
831
|
|
|
827
832
|
} catch (error) {
|
|
@@ -836,7 +841,12 @@ export class OAuth2Service implements OnDestroy {
|
|
|
836
841
|
// Redirect to logout route if configured
|
|
837
842
|
if (this.config.logoutRedirectRoute) {
|
|
838
843
|
this.logInfo('Redirecting to logout route: ', this.config.logoutRedirectRoute);
|
|
839
|
-
this.router.navigate([this.config.logoutRedirectRoute]
|
|
844
|
+
this.router.navigate([this.config.logoutRedirectRoute], {
|
|
845
|
+
queryParams: {
|
|
846
|
+
redirect_url: this.config.redirectUri,
|
|
847
|
+
client_id: this.config.clientId
|
|
848
|
+
}
|
|
849
|
+
});
|
|
840
850
|
}
|
|
841
851
|
}
|
|
842
852
|
}
|