コード例 #1
0
 public AbstractConsentModel(global::IdentityServer4.Models.Consent consent)
 {
     ClientId     = consent.ClientId;
     CreationTime = consent.CreationTime;
     Expiration   = consent.Expiration;
     SubjectId    = consent.SubjectId;
     Scopes       = Serialize(consent.Scopes);
 }
コード例 #2
0
        public async Task <global::IdentityServer4.Models.Consent> MakeConsentAsync()
        {
            var result = new global::IdentityServer4.Models.Consent
            {
                ClientId  = ClientId,
                Scopes    = DeserializeScopes(Scopes),
                SubjectId = SubjectId
            };

            return(await Task.FromResult(result));
        }
コード例 #3
0
 public static ConsentModel ToConsentModel(this global::IdentityServer4.Models.Consent model)
 {
     return(new ConsentModel(model));
 }
コード例 #4
0
 public FlattenedConsentModel(global::IdentityServer4.Models.Consent consent) : base(consent)
 {
 }