Implemented Login workflow
This commit is contained in:
17
SpotiParty.Web/Components/Pages/LoginPage.razor
Normal file
17
SpotiParty.Web/Components/Pages/LoginPage.razor
Normal file
@@ -0,0 +1,17 @@
|
||||
@page "/login"
|
||||
@using SpotiParty.Web.Services
|
||||
|
||||
<a class="button-primary" href="@_uri">Mit Spotify einloggen</a>
|
||||
|
||||
@inject AuthorizationHandler AuthHandler
|
||||
|
||||
@code {
|
||||
|
||||
private Uri _uri = null!;
|
||||
|
||||
protected override async Task OnInitializedAsync() {
|
||||
await base.OnInitializedAsync();
|
||||
_uri = await AuthHandler.ConstructLoginUri();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user