/// <inheritdoc /> public Task <string> CreateAccessToken(AccessTicket session) { var token = Guid.NewGuid().ToString("N"); this.storedAccessTickets[token] = session; return(Task.FromResult(token)); }
/// <summary> /// Initializes a new instance of the <see cref="AuthenticationResult"/> class. /// </summary> /// <param name="accessTicket"> /// The access ticket. /// </param> /// <param name="refreshTicket"> /// The refresh ticket. /// </param> public AuthenticationResult([NotNull] AccessTicket accessTicket, [CanBeNull] RefreshTicket refreshTicket) { this.AccessTicket = accessTicket; this.RefreshTicket = refreshTicket; }