Merge pull request #13060 from influxdata/redirect-quartz-logout
Redirect to quartz logout in cloudpull/13065/head
commit
5626104abc
|
@ -6,7 +6,7 @@ import {withRouter, WithRouterProps} from 'react-router'
|
|||
import {client} from 'src/utils/api'
|
||||
|
||||
// Constants
|
||||
import {CLOUD, CLOUD_SIGNOUT_PATHNAME} from 'src/shared/constants'
|
||||
import {CLOUD, CLOUD_SIGNOUT_URL} from 'src/shared/constants'
|
||||
|
||||
// Components
|
||||
import {ErrorHandling} from 'src/shared/decorators/errors'
|
||||
|
@ -25,7 +25,7 @@ export class Logout extends PureComponent<Props> {
|
|||
|
||||
private handleSignOut = async () => {
|
||||
if (CLOUD) {
|
||||
window.location.pathname = CLOUD_SIGNOUT_PATHNAME
|
||||
window.location.href = CLOUD_SIGNOUT_URL
|
||||
return
|
||||
} else {
|
||||
await client.auth.signout()
|
||||
|
|
|
@ -437,4 +437,4 @@ export const GIT_SHA = process.env.GIT_SHA
|
|||
|
||||
export const CLOUD = process.env.CLOUD && process.env.CLOUD === 'true'
|
||||
export const CLOUD_SIGNIN_PATHNAME = '/api/v2/signin'
|
||||
export const CLOUD_SIGNOUT_PATHNAME = '/api/v2/signout'
|
||||
export const CLOUD_SIGNOUT_URL = process.env.CLOUD_LOGOUT_URL
|
||||
|
|
Loading…
Reference in New Issue