aboutsummaryrefslogtreecommitdiffhomepage
path: root/client
diff options
context:
space:
mode:
authorChocobozzz <chocobozzz@framasoft.org>2020-11-20 15:36:44 +0100
committerChocobozzz <chocobozzz@framasoft.org>2020-11-20 15:36:44 +0100
commitdb7510d6320f9f09a5efefe0a0b2cdcd0d6c5eec (patch)
tree4fd7dd84775780eed82bc4b3caaa328c3526a14c /client
parent8f3ad70874f8769f5340632754dc2ca7f4c82733 (diff)
parent74fd2643b43057c25558b3da79398efe104e2660 (diff)
downloadPeerTube-db7510d6320f9f09a5efefe0a0b2cdcd0d6c5eec.tar.gz
PeerTube-db7510d6320f9f09a5efefe0a0b2cdcd0d6c5eec.tar.zst
PeerTube-db7510d6320f9f09a5efefe0a0b2cdcd0d6c5eec.zip
Merge branch 'artonge/PeerTube-feature/logoutUrlForAuthProviders' into 'develop'
Artonge/peer tube feature/logout url for auth providers See merge request framasoft/peertube/PeerTube!33
Diffstat (limited to 'client')
-rw-r--r--client/src/app/core/auth/auth.service.ts8
1 files changed, 6 insertions, 2 deletions
diff --git a/client/src/app/core/auth/auth.service.ts b/client/src/app/core/auth/auth.service.ts
index 3410c5a6f..fd6062d3f 100644
--- a/client/src/app/core/auth/auth.service.ts
+++ b/client/src/app/core/auth/auth.service.ts
@@ -167,9 +167,13 @@ Ensure you have correctly configured PeerTube (config/ directory), in particular
167 const authHeaderValue = this.getRequestHeaderValue() 167 const authHeaderValue = this.getRequestHeaderValue()
168 const headers = new HttpHeaders().set('Authorization', authHeaderValue) 168 const headers = new HttpHeaders().set('Authorization', authHeaderValue)
169 169
170 this.http.post<void>(AuthService.BASE_REVOKE_TOKEN_URL, {}, { headers }) 170 this.http.post<{ redirectUrl?: string }>(AuthService.BASE_REVOKE_TOKEN_URL, {}, { headers })
171 .subscribe( 171 .subscribe(
172 () => { /* nothing to do */ }, 172 res => {
173 if (res.redirectUrl) {
174 window.location.href = res.redirectUrl
175 }
176 },
173 177
174 err => console.error(err) 178 err => console.error(err)
175 ) 179 )