public AbstractPersistedGrantModel(global::IdentityServer4.Models.PersistedGrant grant) { ClientId = grant.ClientId; CreationTime = grant.CreationTime; Data = grant.Data; Expiration = grant.Expiration; Key = grant.Key; SubjectId = grant.SubjectId; Type = grant.Type; }
public async Task <PersistedGrant> MakePersistedGrantAsync() { var result = new global::IdentityServer4.Models.PersistedGrant { ClientId = ClientId, CreationTime = CreationTime, Data = Data, Expiration = Expiration, Key = Key, SubjectId = SubjectId, Type = Type }; return(await Task.FromResult(result)); }
public static PersistedGrantModel ToPersistedGrantModel(this global::IdentityServer4.Models.PersistedGrant model) { var result = model.ToPersistedGrantModelAsync(); return(result.Result); }
public static async Task <PersistedGrantModel> ToPersistedGrantModelAsync(this global::IdentityServer4.Models.PersistedGrant model) { return(new PersistedGrantModel(model)); }
public PersistedGrantModel(global::IdentityServer4.Models.PersistedGrant grant) : base(grant) { }