|
@@ -1,5 +1,3 @@
|
|
-import {redirect} from 'react-router-dom';
|
|
|
|
-
|
|
|
|
import {addErrorMessage, addSuccessMessage} from 'sentry/actionCreators/indicator';
|
|
import {addErrorMessage, addSuccessMessage} from 'sentry/actionCreators/indicator';
|
|
import {Client} from 'sentry/api';
|
|
import {Client} from 'sentry/api';
|
|
import ConfigStore from 'sentry/stores/configStore';
|
|
import ConfigStore from 'sentry/stores/configStore';
|
|
@@ -52,7 +50,7 @@ export async function logout(api: Client, redirectUrl = '/auth/login/') {
|
|
const data = await api.requestPromise('/auth/', {method: 'DELETE'});
|
|
const data = await api.requestPromise('/auth/', {method: 'DELETE'});
|
|
|
|
|
|
// If there's a URL for SAML Single-logout, redirect back to IdP
|
|
// If there's a URL for SAML Single-logout, redirect back to IdP
|
|
- redirect(data?.sloUrl || redirectUrl);
|
|
|
|
|
|
+ window.location.assign(data?.sloUrl || redirectUrl);
|
|
}
|
|
}
|
|
|
|
|
|
export function removeAuthenticator(api: Client, userId: string, authId: string) {
|
|
export function removeAuthenticator(api: Client, userId: string, authId: string) {
|