Remodelled login with redirect to avoid CORS

This commit is contained in:
Martin
2021-03-20 15:39:00 +01:00
parent 9920c0eb27
commit 4bf74af323
6 changed files with 76 additions and 23 deletions
@@ -1,4 +1,11 @@
<p>login works!</p>
<button (click)="login()">Login</button>
<br>
<div *ngIf="loginHTML" [innerHTML]="loginHTML" title="OpenId"></div>
<button (click)="logout()">Logout</button>
<br>
<button (click)="gotoBackend()">Call Backend</button>
<br>
<p *ngIf="errorMessage">Error on login: {{errorMessage}}</p>
<div *ngIf="parsedToken">
{{parsedToken.given_name}} {{parsedToken.family_name}}
<img alt="Profile picture" [src]="parsedToken.picture" style="height:100px;">
</div>