コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ClientSettingsViaApiResponse" /> class.
 /// </summary>
 /// <param name="flow">flow (required).</param>
 /// <param name="identity">identity (required).</param>
 public ClientSettingsViaApiResponse(ClientSettingsFlow flow = default(ClientSettingsFlow), ClientIdentity identity = default(ClientIdentity))
 {
     // to ensure "flow" is required (not null)
     this.Flow = flow ?? throw new ArgumentNullException("flow is a required property for ClientSettingsViaApiResponse and cannot be null");
     // to ensure "identity" is required (not null)
     this.Identity             = identity ?? throw new ArgumentNullException("identity is a required property for ClientSettingsViaApiResponse and cannot be null");
     this.AdditionalProperties = new Dictionary <string, object>();
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ClientSettingsFlow" /> class.
 /// </summary>
 /// <param name="active">Active, if set, contains the registration method that is being used. It is initially not set..</param>
 /// <param name="expiresAt">ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to update the setting, a new flow has to be initiated. (required).</param>
 /// <param name="id">id (required).</param>
 /// <param name="identity">identity (required).</param>
 /// <param name="issuedAt">IssuedAt is the time (UTC) when the flow occurred. (required).</param>
 /// <param name="requestUrl">RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL&#39;s path or query for example. (required).</param>
 /// <param name="state">state (required).</param>
 /// <param name="type">The flow type can either be &#x60;api&#x60; or &#x60;browser&#x60;..</param>
 /// <param name="ui">ui (required).</param>
 public ClientSettingsFlow(string active = default(string), DateTime expiresAt = default(DateTime), string id = default(string), ClientIdentity identity = default(ClientIdentity), DateTime issuedAt = default(DateTime), string requestUrl = default(string), string state = default(string), string type = default(string), ClientUiContainer ui = default(ClientUiContainer))
 {
     this.ExpiresAt = expiresAt;
     // to ensure "id" is required (not null)
     this.Id = id ?? throw new ArgumentNullException("id is a required property for ClientSettingsFlow and cannot be null");
     // to ensure "identity" is required (not null)
     this.Identity = identity ?? throw new ArgumentNullException("identity is a required property for ClientSettingsFlow and cannot be null");
     this.IssuedAt = issuedAt;
     // to ensure "requestUrl" is required (not null)
     this.RequestUrl = requestUrl ?? throw new ArgumentNullException("requestUrl is a required property for ClientSettingsFlow and cannot be null");
     // to ensure "state" is required (not null)
     this.State = state ?? throw new ArgumentNullException("state is a required property for ClientSettingsFlow and cannot be null");
     // to ensure "ui" is required (not null)
     this.Ui     = ui ?? throw new ArgumentNullException("ui is a required property for ClientSettingsFlow and cannot be null");
     this.Active = active;
     this.Type   = type;
     this.AdditionalProperties = new Dictionary <string, object>();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ClientSuccessfulSelfServiceSettingsWithoutBrowser" /> class.
 /// </summary>
 /// <param name="flow">flow (required).</param>
 /// <param name="identity">identity (required).</param>
 public ClientSuccessfulSelfServiceSettingsWithoutBrowser(ClientSelfServiceSettingsFlow flow = default(ClientSelfServiceSettingsFlow), ClientIdentity identity = default(ClientIdentity))
 {
     // to ensure "flow" is required (not null)
     this.Flow = flow ?? throw new ArgumentNullException("flow is a required property for ClientSuccessfulSelfServiceSettingsWithoutBrowser and cannot be null");
     // to ensure "identity" is required (not null)
     this.Identity             = identity ?? throw new ArgumentNullException("identity is a required property for ClientSuccessfulSelfServiceSettingsWithoutBrowser and cannot be null");
     this.AdditionalProperties = new Dictionary <string, object>();
 }
コード例 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ClientSession" /> class.
 /// </summary>
 /// <param name="active">active.</param>
 /// <param name="authenticatedAt">authenticatedAt (required).</param>
 /// <param name="expiresAt">expiresAt (required).</param>
 /// <param name="id">id (required).</param>
 /// <param name="identity">identity (required).</param>
 /// <param name="issuedAt">issuedAt (required).</param>
 public ClientSession(bool active = default(bool), DateTime authenticatedAt = default(DateTime), DateTime expiresAt = default(DateTime), string id = default(string), ClientIdentity identity = default(ClientIdentity), DateTime issuedAt = default(DateTime))
 {
     this.AuthenticatedAt = authenticatedAt;
     this.ExpiresAt       = expiresAt;
     // to ensure "id" is required (not null)
     this.Id = id ?? throw new ArgumentNullException("id is a required property for ClientSession and cannot be null");
     // to ensure "identity" is required (not null)
     this.Identity             = identity ?? throw new ArgumentNullException("identity is a required property for ClientSession and cannot be null");
     this.IssuedAt             = issuedAt;
     this.Active               = active;
     this.AdditionalProperties = new Dictionary <string, object>();
 }
コード例 #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ClientSession" /> class.
 /// </summary>
 /// <param name="active">Active state. If false the session is no longer active..</param>
 /// <param name="authenticatedAt">The Session Authentication Timestamp  When this session was authenticated at. If multi-factor authentication was used this is the time when the last factor was authenticated (e.g. the TOTP code challenge was completed)..</param>
 /// <param name="authenticationMethods">A list of authenticators which were used to authenticate the session..</param>
 /// <param name="authenticatorAssuranceLevel">authenticatorAssuranceLevel.</param>
 /// <param name="expiresAt">The Session Expiry  When this session expires at..</param>
 /// <param name="id">id (required).</param>
 /// <param name="identity">identity (required).</param>
 /// <param name="issuedAt">The Session Issuance Timestamp  When this session was issued at. Usually equal or close to &#x60;authenticated_at&#x60;..</param>
 public ClientSession(bool active = default(bool), DateTime authenticatedAt = default(DateTime), List <ClientSessionAuthenticationMethod> authenticationMethods = default(List <ClientSessionAuthenticationMethod>), ClientAuthenticatorAssuranceLevel authenticatorAssuranceLevel = default(ClientAuthenticatorAssuranceLevel), DateTime expiresAt = default(DateTime), string id = default(string), ClientIdentity identity = default(ClientIdentity), DateTime issuedAt = default(DateTime))
 {
     // to ensure "id" is required (not null)
     if (id == null)
     {
         throw new ArgumentNullException("id is a required property for ClientSession and cannot be null");
     }
     this.Id = id;
     // to ensure "identity" is required (not null)
     if (identity == null)
     {
         throw new ArgumentNullException("identity is a required property for ClientSession and cannot be null");
     }
     this.Identity                    = identity;
     this.Active                      = active;
     this.AuthenticatedAt             = authenticatedAt;
     this.AuthenticationMethods       = authenticationMethods;
     this.AuthenticatorAssuranceLevel = authenticatorAssuranceLevel;
     this.ExpiresAt                   = expiresAt;
     this.IssuedAt                    = issuedAt;
     this.AdditionalProperties        = new Dictionary <string, object>();
 }