/// <summary>
 /// Initializes a new instance of the <see cref="KratosSuccessfulSelfServiceLoginWithoutBrowser" /> class.
 /// </summary>
 /// <param name="session">session (required).</param>
 /// <param name="sessionToken">The Session Token  A session token is equivalent to a session cookie, but it can be sent in the HTTP Authorization Header:  Authorization: bearer ${session-token}  The session token is only issued for API flows, not for Browser flows!.</param>
 public KratosSuccessfulSelfServiceLoginWithoutBrowser(KratosSession session = default(KratosSession), string sessionToken = default(string))
 {
     // to ensure "session" is required (not null)
     this.Session              = session ?? throw new ArgumentNullException("session is a required property for KratosSuccessfulSelfServiceLoginWithoutBrowser and cannot be null");
     this.SessionToken         = sessionToken;
     this.AdditionalProperties = new Dictionary <string, object>();
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KratosLoginViaApiResponse" /> class.
 /// </summary>
 /// <param name="session">session (required).</param>
 /// <param name="sessionToken">The Session Token  A session token is equivalent to a session cookie, but it can be sent in the HTTP Authorization Header:  Authorization: bearer ${session-token}  The session token is only issued for API flows, not for Browser flows! (required).</param>
 public KratosLoginViaApiResponse(KratosSession session = default(KratosSession), string sessionToken = default(string))
 {
     // to ensure "session" is required (not null)
     this.Session = session ?? throw new ArgumentNullException("session is a required property for KratosLoginViaApiResponse and cannot be null");
     // to ensure "sessionToken" is required (not null)
     this.SessionToken = sessionToken ?? throw new ArgumentNullException("sessionToken is a required property for KratosLoginViaApiResponse and cannot be null");
 }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KratosRegistrationViaApiResponse" /> class.
 /// </summary>
 /// <param name="identity">identity (required).</param>
 /// <param name="session">session.</param>
 /// <param name="sessionToken">The Session Token  This field is only set when the session hook is configured as a post-registration hook.  A session token is equivalent to a session cookie, but it can be sent in the HTTP Authorization Header:  Authorization: bearer ${session-token}  The session token is only issued for API flows, not for Browser flows! (required).</param>
 public KratosRegistrationViaApiResponse(KratosIdentity identity = default(KratosIdentity), KratosSession session = default(KratosSession), string sessionToken = default(string))
 {
     // to ensure "identity" is required (not null)
     this.Identity = identity ?? throw new ArgumentNullException("identity is a required property for KratosRegistrationViaApiResponse and cannot be null");
     // to ensure "sessionToken" is required (not null)
     this.SessionToken         = sessionToken ?? throw new ArgumentNullException("sessionToken is a required property for KratosRegistrationViaApiResponse and cannot be null");
     this.Session              = session;
     this.AdditionalProperties = new Dictionary <string, object>();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="KratosSuccessfulSelfServiceRegistrationWithoutBrowser" /> class.
 /// </summary>
 /// <param name="identity">identity (required).</param>
 /// <param name="session">session.</param>
 /// <param name="sessionToken">The Session Token  This field is only set when the session hook is configured as a post-registration hook.  A session token is equivalent to a session cookie, but it can be sent in the HTTP Authorization Header:  Authorization: bearer ${session-token}  The session token is only issued for API flows, not for Browser flows!.</param>
 public KratosSuccessfulSelfServiceRegistrationWithoutBrowser(KratosIdentity identity = default(KratosIdentity), KratosSession session = default(KratosSession), string sessionToken = default(string))
 {
     // to ensure "identity" is required (not null)
     if (identity == null)
     {
         throw new ArgumentNullException("identity is a required property for KratosSuccessfulSelfServiceRegistrationWithoutBrowser and cannot be null");
     }
     this.Identity             = identity;
     this.Session              = session;
     this.SessionToken         = sessionToken;
     this.AdditionalProperties = new Dictionary <string, object>();
 }