/// <summary>
 /// Initializes a new instance of the GitHub class.
 /// </summary>
 /// <param name="enabled">&lt;code&gt;false&lt;/code&gt; if the GitHub
 /// provider should not be enabled despite the set registration;
 /// otherwise, &lt;code&gt;true&lt;/code&gt;.</param>
 /// <param name="registration">The configuration settings of the app
 /// registration for the GitHub provider.</param>
 /// <param name="login">The configuration settings of the login
 /// flow.</param>
 public GitHub(bool?enabled = default(bool?), ClientRegistration registration = default(ClientRegistration), LoginScopes login = default(LoginScopes))
 {
     Enabled      = enabled;
     Registration = registration;
     Login        = login;
     CustomInit();
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the Apple class.
 /// </summary>
 /// <param name="enabled">&lt;code&gt;false&lt;/code&gt; if the Apple
 /// provider should not be enabled despite the set registration;
 /// otherwise, &lt;code&gt;true&lt;/code&gt;.</param>
 /// <param name="registration">The configuration settings of the Apple
 /// registration.</param>
 /// <param name="login">The configuration settings of the login
 /// flow.</param>
 public Apple(bool?enabled = default(bool?), AppleRegistration registration = default(AppleRegistration), LoginScopes login = default(LoginScopes))
 {
     Enabled      = enabled;
     Registration = registration;
     Login        = login;
     CustomInit();
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the Facebook class.
 /// </summary>
 /// <param name="enabled">&lt;code&gt;false&lt;/code&gt; if the
 /// Facebook provider should not be enabled despite the set
 /// registration; otherwise, &lt;code&gt;true&lt;/code&gt;.</param>
 /// <param name="registration">The configuration settings of the app
 /// registration for the Facebook provider.</param>
 /// <param name="graphApiVersion">The version of the Facebook api to be
 /// used while logging in.</param>
 /// <param name="login">The configuration settings of the login
 /// flow.</param>
 public Facebook(bool?enabled = default(bool?), AppRegistration registration = default(AppRegistration), string graphApiVersion = default(string), LoginScopes login = default(LoginScopes))
 {
     Enabled         = enabled;
     Registration    = registration;
     GraphApiVersion = graphApiVersion;
     Login           = login;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the Google class.
 /// </summary>
 /// <param name="enabled">&lt;code&gt;false&lt;/code&gt; if the Google
 /// provider should not be enabled despite the set registration;
 /// otherwise, &lt;code&gt;true&lt;/code&gt;.</param>
 /// <param name="registration">The configuration settings of the app
 /// registration for the Google provider.</param>
 /// <param name="login">The configuration settings of the login
 /// flow.</param>
 /// <param name="validation">The configuration settings of the Azure
 /// Active Directory token validation flow.</param>
 public Google(bool?enabled = default(bool?), ClientRegistration registration = default(ClientRegistration), LoginScopes login = default(LoginScopes), AllowedAudiencesValidation validation = default(AllowedAudiencesValidation))
 {
     Enabled      = enabled;
     Registration = registration;
     Login        = login;
     Validation   = validation;
     CustomInit();
 }