コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KratosSelfServiceVerificationFlow" /> 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 request expires. If the user still wishes to verify the address, a new request has to be initiated..</param>
 /// <param name="id">id (required).</param>
 /// <param name="issuedAt">IssuedAt is the time (UTC) when the request occurred..</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..</param>
 /// <param name="state">state (required).</param>
 /// <param name="type">The flow type can either be &#x60;api&#x60; or &#x60;browser&#x60;. (required).</param>
 /// <param name="ui">ui (required).</param>
 public KratosSelfServiceVerificationFlow(string active = default(string), DateTime expiresAt = default(DateTime), string id = default(string), DateTime issuedAt = default(DateTime), string requestUrl = default(string), KratosSelfServiceVerificationFlowState state = default(KratosSelfServiceVerificationFlowState), string type = default(string), KratosUiContainer ui = default(KratosUiContainer))
 {
     // to ensure "id" is required (not null)
     this.Id = id ?? throw new ArgumentNullException("id is a required property for KratosSelfServiceVerificationFlow and cannot be null");
     // to ensure "state" is required (not null)
     this.State = state ?? throw new ArgumentNullException("state is a required property for KratosSelfServiceVerificationFlow and cannot be null");
     // to ensure "type" is required (not null)
     this.Type = type ?? throw new ArgumentNullException("type is a required property for KratosSelfServiceVerificationFlow and cannot be null");
     // to ensure "ui" is required (not null)
     this.Ui                   = ui ?? throw new ArgumentNullException("ui is a required property for KratosSelfServiceVerificationFlow and cannot be null");
     this.Active               = active;
     this.ExpiresAt            = expiresAt;
     this.IssuedAt             = issuedAt;
     this.RequestUrl           = requestUrl;
     this.AdditionalProperties = new Dictionary <string, object>();
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KratosSelfServiceSettingsFlow" /> 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="returnTo">ReturnTo contains the requested return_to URL..</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 KratosSelfServiceSettingsFlow(string active = default(string), DateTime expiresAt = default(DateTime), string id = default(string), KratosIdentity identity = default(KratosIdentity), DateTime issuedAt = default(DateTime), string requestUrl = default(string), string returnTo = default(string), KratosSelfServiceSettingsFlowState state = default(KratosSelfServiceSettingsFlowState), string type = default(string), KratosUiContainer ui = default(KratosUiContainer))
 {
     this.ExpiresAt = expiresAt;
     // to ensure "id" is required (not null)
     if (id == null)
     {
         throw new ArgumentNullException("id is a required property for KratosSelfServiceSettingsFlow 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 KratosSelfServiceSettingsFlow and cannot be null");
     }
     this.Identity = identity;
     this.IssuedAt = issuedAt;
     // to ensure "requestUrl" is required (not null)
     if (requestUrl == null)
     {
         throw new ArgumentNullException("requestUrl is a required property for KratosSelfServiceSettingsFlow and cannot be null");
     }
     this.RequestUrl = requestUrl;
     // to ensure "state" is required (not null)
     if (state == null)
     {
         throw new ArgumentNullException("state is a required property for KratosSelfServiceSettingsFlow and cannot be null");
     }
     this.State = state;
     // to ensure "ui" is required (not null)
     if (ui == null)
     {
         throw new ArgumentNullException("ui is a required property for KratosSelfServiceSettingsFlow and cannot be null");
     }
     this.Ui                   = ui;
     this.Active               = active;
     this.ReturnTo             = returnTo;
     this.Type                 = type;
     this.AdditionalProperties = new Dictionary <string, object>();
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KratosLoginFlow" /> class.
 /// </summary>
 /// <param name="active">and so on..</param>
 /// <param name="expiresAt">ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated. (required).</param>
 /// <param name="forced">Forced stores whether this login flow should enforce re-authentication..</param>
 /// <param name="id">id (required).</param>
 /// <param name="issuedAt">IssuedAt is the time (UTC) when the flow started. (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="type">The flow type can either be &#x60;api&#x60; or &#x60;browser&#x60;. (required).</param>
 /// <param name="ui">ui (required).</param>
 public KratosLoginFlow(string active = default(string), DateTime expiresAt = default(DateTime), bool forced = default(bool), string id = default(string), DateTime issuedAt = default(DateTime), string requestUrl = default(string), string type = default(string), KratosUiContainer ui = default(KratosUiContainer))
 {
     this.ExpiresAt = expiresAt;
     // to ensure "id" is required (not null)
     this.Id       = id ?? throw new ArgumentNullException("id is a required property for KratosLoginFlow 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 KratosLoginFlow and cannot be null");
     // to ensure "type" is required (not null)
     this.Type = type ?? throw new ArgumentNullException("type is a required property for KratosLoginFlow and cannot be null");
     // to ensure "ui" is required (not null)
     this.Ui     = ui ?? throw new ArgumentNullException("ui is a required property for KratosLoginFlow and cannot be null");
     this.Active = active;
     this.Forced = forced;
     this.AdditionalProperties = new Dictionary <string, object>();
 }
コード例 #4
0
ファイル: KratosSelfServiceLoginFlow.cs プロジェクト: ory/sdk
 /// <summary>
 /// Initializes a new instance of the <see cref="KratosSelfServiceLoginFlow" /> class.
 /// </summary>
 /// <param name="active">active.</param>
 /// <param name="createdAt">CreatedAt is a helper struct field for gobuffalo.pop..</param>
 /// <param name="expiresAt">ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated. (required).</param>
 /// <param name="id">id (required).</param>
 /// <param name="issuedAt">IssuedAt is the time (UTC) when the flow started. (required).</param>
 /// <param name="refresh">Refresh stores whether this login flow should enforce re-authentication..</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="requestedAal">requestedAal.</param>
 /// <param name="returnTo">ReturnTo contains the requested return_to URL..</param>
 /// <param name="type">The flow type can either be &#x60;api&#x60; or &#x60;browser&#x60;. (required).</param>
 /// <param name="ui">ui (required).</param>
 /// <param name="updatedAt">UpdatedAt is a helper struct field for gobuffalo.pop..</param>
 public KratosSelfServiceLoginFlow(KratosIdentityCredentialsType active = default(KratosIdentityCredentialsType), DateTime createdAt = default(DateTime), DateTime expiresAt = default(DateTime), string id = default(string), DateTime issuedAt = default(DateTime), bool refresh = default(bool), string requestUrl = default(string), KratosAuthenticatorAssuranceLevel requestedAal = default(KratosAuthenticatorAssuranceLevel), string returnTo = default(string), string type = default(string), KratosUiContainer ui = default(KratosUiContainer), DateTime updatedAt = default(DateTime))
 {
     this.ExpiresAt = expiresAt;
     // to ensure "id" is required (not null)
     if (id == null)
     {
         throw new ArgumentNullException("id is a required property for KratosSelfServiceLoginFlow and cannot be null");
     }
     this.Id       = id;
     this.IssuedAt = issuedAt;
     // to ensure "requestUrl" is required (not null)
     if (requestUrl == null)
     {
         throw new ArgumentNullException("requestUrl is a required property for KratosSelfServiceLoginFlow and cannot be null");
     }
     this.RequestUrl = requestUrl;
     // to ensure "type" is required (not null)
     if (type == null)
     {
         throw new ArgumentNullException("type is a required property for KratosSelfServiceLoginFlow and cannot be null");
     }
     this.Type = type;
     // to ensure "ui" is required (not null)
     if (ui == null)
     {
         throw new ArgumentNullException("ui is a required property for KratosSelfServiceLoginFlow and cannot be null");
     }
     this.Ui                   = ui;
     this.Active               = active;
     this.CreatedAt            = createdAt;
     this.Refresh              = refresh;
     this.RequestedAal         = requestedAal;
     this.ReturnTo             = returnTo;
     this.UpdatedAt            = updatedAt;
     this.AdditionalProperties = new Dictionary <string, object>();
 }