Example #1
0
 public async Task <Either <TssLoginFlow, PKCETokenResponse> > Handle(TryLogin request,
                                                                      CancellationToken cancellationToken)
 {
     return((await LoadToken(_config.CredentialsPath))
            .Case switch
     {
         PKCETokenResponse token => Prelude.Right(token),
         _ => Prelude.Left(new TssLoginFlow(_config.ClientId, _config.CallbackUrl))
     });
Example #2
0
 private void LoginButton_Click(object sender, EventArgs e)
 {
     TryLogin?.Invoke();
 }
Example #3
0
 protected void OkButtonClicked(object sender, EventArgs a)
 {
     ErrorMessage.Text = string.Empty;
     TryLogin?.Invoke();
 }