Merge pull request #13060 from influxdata/redirect-quartz-logout

Redirect to quartz logout in cloud
pull/13065/head
Brandon Farmer 2019-04-01 12:13:07 -07:00 committed by GitHub
commit 5626104abc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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()

View File

@ -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