コード例 #1
0
        /// <inheritdoc />
        public Task <string> CreateAccessToken(AccessTicket session)
        {
            var token = Guid.NewGuid().ToString("N");

            this.storedAccessTickets[token] = session;
            return(Task.FromResult(token));
        }
コード例 #2
0
 /// <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;
 }