Ejemplo n.º 1
0
 //Override, using custom token In order to be able to process token data
 public sealed override ValueTask <IToken> GetToken(HttpContext context, Business.AspNet.Token token) =>
 new ValueTask <IToken>(Task.FromResult <IToken>(new Token
 {
     Origin   = token.Origin,
     Key      = token.Key,
     Remote   = token.Remote,
     Callback = token.Callback,
     Path     = token.Path
 }));
Ejemplo n.º 2
0
 public sealed override async ValueTask <IToken> GetToken(HttpContext context, Business.AspNet.Token token) => new Token
 {
     Origin   = token.Origin,
     Key      = token.Key,
     Remote   = token.Remote,
     Callback = token.Callback,
     Path     = token.Path,
 };