Example #1
0
 private void HttpServerOnOnAuth(AuthEventArgs e)
 {
     OnResponseReceivedEvent?.Invoke(new AutorizationCodeAuthResponse()
     {
         Code  = e.Code,
         State = e.State,
         Error = e.Error
     });
 }
Example #2
0
 private void HttpServerOnOnAuth(AuthEventArgs e)
 {
     OnResponseReceivedEvent?.Invoke(new Token
     {
         AccessToken = e.Code,
         TokenType   = e.TokenType,
         ExpiresIn   = e.ExpiresIn,
         Error       = e.Error
     }, e.State);
 }