Esempio n. 1
0
 public async Task <IActionResult> RefreshToken([FromBody] ExchangeRefreshTokenCommand command)
 {
     return(await DispatchAsync(new ExtendedRefreshTokenCommand(command, authSettings.SecretKey)));
 }
 public ExtendedRefreshTokenCommand(ExchangeRefreshTokenCommand command, string signingKey)
 {
     this.AccessToken  = command.AccessToken;
     this.RefreshToken = command.RefreshToken;
     this.SigningKey   = signingKey;
 }
Esempio n. 3
0
 public async Task <IActionResult> Create([FromBody] ExchangeRefreshTokenCommand command)
 {
     return(Created(CurrentUri, await Mediator.Send(command)));
 }