This commit is contained in:
Manuel Hude
2021-03-20 15:58:02 +01:00
parent 259fa19a87
commit 764a0c232c
5 changed files with 21988 additions and 27 deletions
@@ -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)
})