Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HydraPreviousConsentSession" /> class.
 /// </summary>
 /// <param name="consentRequest">consentRequest.</param>
 /// <param name="grantAccessTokenAudience">grantAccessTokenAudience.</param>
 /// <param name="grantScope">grantScope.</param>
 /// <param name="handledAt">handledAt.</param>
 /// <param name="remember">Remember, if set to true, tells ORY Hydra to remember this consent authorization and reuse it if the same client asks the same user for the same, or a subset of, scope..</param>
 /// <param name="rememberFor">RememberFor sets how long the consent authorization should be remembered for in seconds. If set to &#x60;0&#x60;, the authorization will be remembered indefinitely..</param>
 /// <param name="session">session.</param>
 public HydraPreviousConsentSession(HydraConsentRequest consentRequest = default(HydraConsentRequest), List <string> grantAccessTokenAudience = default(List <string>), List <string> grantScope = default(List <string>), DateTime handledAt = default(DateTime), bool remember = default(bool), long rememberFor = default(long), HydraConsentRequestSession session = default(HydraConsentRequestSession))
 {
     this.ConsentRequest           = consentRequest;
     this.GrantAccessTokenAudience = grantAccessTokenAudience;
     this.GrantScope  = grantScope;
     this.HandledAt   = handledAt;
     this.Remember    = remember;
     this.RememberFor = rememberFor;
     this.Session     = session;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HydraAcceptConsentRequest" /> class.
 /// </summary>
 /// <param name="grantAccessTokenAudience">grantAccessTokenAudience.</param>
 /// <param name="grantScope">grantScope.</param>
 /// <param name="handledAt">handledAt.</param>
 /// <param name="remember">Remember, if set to true, tells ORY Hydra to remember this consent authorization and reuse it if the same client asks the same user for the same, or a subset of, scope..</param>
 /// <param name="rememberFor">RememberFor sets how long the consent authorization should be remembered for in seconds. If set to &#x60;0&#x60;, the authorization will be remembered indefinitely..</param>
 /// <param name="session">session.</param>
 public HydraAcceptConsentRequest(List <string> grantAccessTokenAudience = default(List <string>), List <string> grantScope = default(List <string>), DateTime handledAt = default(DateTime), bool remember = default(bool), long rememberFor = default(long), HydraConsentRequestSession session = default(HydraConsentRequestSession))
 {
     this.GrantAccessTokenAudience = grantAccessTokenAudience;
     this.GrantScope           = grantScope;
     this.HandledAt            = handledAt;
     this.Remember             = remember;
     this.RememberFor          = rememberFor;
     this.Session              = session;
     this.AdditionalProperties = new Dictionary <string, object>();
 }