예제 #1
0
        internal static IAuthoritionComponent UseOIDCAuthServer(XmlNode section)
        {
            var Component = new OIDCAuthComponent();

            FastDFSConfigurationSection.FormatFromConfig(Component, section);
            return(Component);
        }
예제 #2
0
        internal static IAuthoritionComponent UseGoogleAuthServer(IConfigurationSection section)
        {
            var Component = new GoogleAuthComponent();

            FastDFSConfigurationSection.FormatFromConfig(Component, section);
            return(Component);
        }
예제 #3
0
 /// <summary>
 /// Read the default configuration from the project configuration file
 /// </summary>
 /// <param name="services"></param>
 /// <param name="configuration"></param>
 public static IServiceCollection AddFastDFSClientDefaultOption(this IServiceCollection services, IConfiguration configuration)
 {
     return(AddFastDFSClientDefaultOption(services, FastDFSConfigurationSection.Create(configuration.GetSection(DefaultFastDFSConfigurationName))));
 }