OAUTH
This commit is contained in:
Generated
+21937
-22
File diff suppressed because it is too large
Load Diff
@@ -40,7 +40,7 @@ export class LoginComponent implements OnInit {
|
||||
'Accept': '*/*',
|
||||
'Access-Control-Allow-Origin': '*'
|
||||
};
|
||||
this.http.get('https://waecm-sso.inso.tuwien.ac.at/auth/realms/waecm/protocol/openid-connect/logout' +
|
||||
return this.http.get('https://waecm-sso.inso.tuwien.ac.at/auth/realms/waecm/protocol/openid-connect/logout' +
|
||||
'?id_token_hint=' + this.id_token + '&\n' +
|
||||
'post_logout_redirect_uri=https://localhost:4200/&\n' +
|
||||
'state=' + this.state,
|
||||
@@ -53,9 +53,9 @@ export class LoginComponent implements OnInit {
|
||||
|
||||
gotoBackend() {
|
||||
const headerDict = {
|
||||
'Authorization': 'Bearer ' + this.id_token
|
||||
'Authorization': 'Bearer ' + this.id_token,
|
||||
};
|
||||
this.http.get('https://localhost:8000/api/login',
|
||||
return this.http.get('http://localhost:8000/api/login',
|
||||
{
|
||||
headers: new HttpHeaders(headerDict)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user