internal static string ToSerializedValue(this BuiltInAuthenticationProvider value) { switch( value ) { case BuiltInAuthenticationProvider.AzureActiveDirectory: return "AzureActiveDirectory"; case BuiltInAuthenticationProvider.Facebook: return "Facebook"; case BuiltInAuthenticationProvider.Google: return "Google"; case BuiltInAuthenticationProvider.MicrosoftAccount: return "MicrosoftAccount"; case BuiltInAuthenticationProvider.Twitter: return "Twitter"; } return null; }
internal static string ToSerializedValue(this BuiltInAuthenticationProvider value) { switch (value) { case BuiltInAuthenticationProvider.AzureActiveDirectory: return("AzureActiveDirectory"); case BuiltInAuthenticationProvider.Facebook: return("Facebook"); case BuiltInAuthenticationProvider.Google: return("Google"); case BuiltInAuthenticationProvider.MicrosoftAccount: return("MicrosoftAccount"); case BuiltInAuthenticationProvider.Twitter: return("Twitter"); case BuiltInAuthenticationProvider.Github: return("Github"); } return(null); }
/// <summary> /// Converts the <see cref="sourceValue" /> parameter to the <see cref="destinationType" /> parameter using <see cref="formatProvider" /// /> and <see cref="ignoreCase" /> /// </summary> /// <param name="sourceValue">the <see cref="System.Object"/> to convert from</param> /// <param name="destinationType">the <see cref="System.Type" /> to convert to</param> /// <param name="formatProvider">not used by this TypeConverter.</param> /// <param name="ignoreCase">when set to <c>true</c>, will ignore the case when converting.</param> /// <returns> /// an instance of <see cref="BuiltInAuthenticationProvider" />, or <c>null</c> if there is no suitable conversion. /// </returns> public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => BuiltInAuthenticationProvider.CreateFrom(sourceValue);
public WebAppAuthenticationImpl <FluentT, FluentImplT, DefAfterRegionT, DefAfterGroupT, UpdateT> WithDefaultAuthenticationProvider(BuiltInAuthenticationProvider provider) { Inner.UnauthenticatedClientAction = UnauthenticatedClientAction.RedirectToLoginPage; Inner.DefaultProvider = provider; return(this); }
/// <summary> /// Specifies the default authentication provider. /// </summary> /// <param name="provider">The default authentication provider.</param> /// <return>The next stage of the definition.</return> WebAppAuthentication.UpdateDefinition.IWithAttach <WebAppBase.Update.IUpdate <FluentT> > WebAppAuthentication.UpdateDefinition.IWithDefaultAuthenticationProvider <WebAppBase.Update.IUpdate <FluentT> > .WithDefaultAuthenticationProvider(BuiltInAuthenticationProvider provider) { return(this.WithDefaultAuthenticationProvider(provider)); }
/// <summary> /// Specifies the default authentication provider. /// </summary> /// <param name="provider">The default authentication provider.</param> /// <return>The next stage of the definition.</return> WebAppAuthentication.Definition.IWithAttach <WebAppBase.Definition.IWithCreate <FluentT> > WebAppAuthentication.Definition.IWithDefaultAuthenticationProvider <WebAppBase.Definition.IWithCreate <FluentT> > .WithDefaultAuthenticationProvider(BuiltInAuthenticationProvider provider) { return(this.WithDefaultAuthenticationProvider(provider) as WebAppAuthentication.Definition.IWithAttach <WebAppBase.Definition.IWithCreate <FluentT> >); }
public static string ToSerialString(this BuiltInAuthenticationProvider value) => value switch {