コード例 #1
0
        public static AuthenticationBuilder AddGoogle(this AuthenticationBuilder authBuilder, NotifoIdentityOptions identityOptions)
        {
            if (identityOptions.IsGoogleAuthConfigured())
            {
                authBuilder.AddGoogle(options =>
                {
                    options.ClientId     = identityOptions.GoogleClient;
                    options.ClientSecret = identityOptions.GoogleSecret;
                });
            }

            return(authBuilder);
        }