예제 #1
0
 /// <summary>
 /// Adds <see cref="AlipayAuthenticationHandler"/> to the specified
 /// <see cref="AuthenticationBuilder"/>, which enables Alipay authentication capabilities.
 /// </summary>
 /// <param name="builder">The authentication builder.</param>
 /// <param name="scheme">The authentication scheme associated with this instance.</param>
 /// <param name="configuration">The delegate used to configure the Alipay options.</param>
 /// <returns>The <see cref="AuthenticationBuilder"/>.</returns>
 public static AuthenticationBuilder AddAlipay(
     [NotNull] this AuthenticationBuilder builder,
     [NotNull] string scheme,
     [NotNull] Action <AlipayAuthenticationOptions> configuration)
 {
     return(builder.AddAlipay(scheme, AlipayAuthenticationDefaults.DisplayName, configuration));
 }
예제 #2
0
 protected internal override void RegisterAuthentication(AuthenticationBuilder builder)
 {
     builder.Services.AddSingleton <ISystemClock, FixedClock>();
     builder.AddAlipay(options =>
     {
         ConfigureDefaults(builder, options);
         options.ClientSecret = "MIIEpAIBAAKCAQEA4qTrblG1QjselyiQQnMnyjJHH2h/mxCOYYmyJbxv+OWAjKr+ZnAamRegZSC7YJ2NxnUCNscoAa3wfnoss2RAKS23Zzs2Y47u9ZHiyW/HXyPF23qVQ/vg71YaiiMa/cLrGFlu2zy+PgpjID6xuUddFIfIJVXOBJvWU3RAzct4bMYYSNauaj5WQRYTeh23IbuCrktzEFzyqmt3EtPaIrOosL3VzL1zpuFoTh2+Fh+49wN8JbiOmLdZmf7dGVvNw6YLm6gkeT5i2N1x7L/91HLQNaT/MrllIOMf0VO3FRqSAcDy0DocBOew75ApAy623ngKW7RZAWs7Mah0MZ4mqwxjKQIDAQABAoIBAQDg36NcvSNsSH5Mmomv9NP48bPRvPxHXcD3lAi3GmW6/fNzHsH136r0VRXm4Pgpn4mo7DW7JhVSvUOOKiiqAYELmnmLqpuHYq1D6HCtTwPxKOxKnTD22DZRIgyJHNXODJT4ftvYGUflBKdfufTaka0QDr0OFjmoJvsbqJAX4Jdmy7QGNDWZB0yL66FrsXGc7EMU8UyCBPDVmRRfNqbEf35oJCP2fInDYrcjiAcrbydWh70gOvGi8Gs0ugPFVxJSKk0If1JV3iTwXV9dNTorupPQ62dKBZRV6ySe/gPgKK0Jt9uMfQxpT0w6A8OEU/bQyrFiGzmqjwqkEQXKd4fiqscFAoGBAPSI/23ZW+ZnFEucqumaAiqfvTgOvlwYuM9/RplKrW5D0YT2aG5ALjnntLth1X0Sw8aIXZfdm15spPkehgmVzVT3DalxDr1CfxJ4utOdzxqXG6/1ZBnO9o3QUY/ieVSScrtq2M+MYynaZ+i3iu5vMZ3i8YpUml2q8dugNrAtCl17AoGBAO1FMDFMK2Df5FnHYeR4JV+wlkeffEEuuCud0ruMztPvtdT6eKhI6DvF211Dl/VDle8SEt/3ygx8wiykhaKRhQxxEUFIuf7wNmXuXsu/HmLzBbtjyS5IdzY0opGItoS2L85tgeyx+4YS1J3SO/cPlur4dxvM+10oXp0W8LEPuDarAoGAM7FaPcB7GuOjeLBvuN4joxsNhvIm75USTFrdc75Dl1Gi0va78MKEgx0mKY5u8PeshyWAk3/3Pii9XyRCtXgDZfir3KvXr86EykTXSbDMfRSAd9vqA0KrACOPelknyOcEdfYKSyWkOM7AtINITUsYNAYrhVCJKU/fvMvLg8ahsE0CgYBhwhH7HcD5pwW0n9uLgJ0VcfJZDDLrwE4NWndK4tcMp0UpvREddPyKNBkPshvX58LMv4ubT8KlpnlyX07YDlDdMXDEjyxjB6HCGZZhKBti9XI1JQXs1dqYMNOSVtusjkvgJ2pSlXpmYTfM1qPyRTAPG9QnVity1IE3BA6jRTDHBQKBgQCMeM7hRmZYhqIb+645ihAmXjyZW5cWOG8XSouPb8UgDYvjgDswM1hChCxF0qsh0E0l9F/Fo4U1CI6Fl2UgO5eehcIlMy+tGLvvBAlyHJ1twsWBqmDopSh0b0S0a+kEzIf4NIBP+Gm+DJEzBig0qYeecQm8JJJzzcfrwWUkVeaKfA==";
     });
 }
예제 #3
0
 /// <summary>
 /// Adds <see cref="AlipayAuthenticationHandler"/> to the specified
 /// <see cref="AuthenticationBuilder"/>, which enables Alipay authentication capabilities.
 /// </summary>
 /// <param name="builder">The authentication builder.</param>
 /// <param name="configuration">The delegate used to configure the OpenID 2.0 options.</param>
 /// <returns>The <see cref="AuthenticationBuilder"/>.</returns>
 public static AuthenticationBuilder AddAlipay(
     [NotNull] this AuthenticationBuilder builder,
     [NotNull] Action <AlipayAuthenticationOptions> configuration)
 {
     return(builder.AddAlipay(AlipayAuthenticationDefaults.AuthenticationScheme, configuration));
 }
예제 #4
0
 /// <summary>
 /// Adds <see cref="AlipayAuthenticationHandler"/> to the specified
 /// <see cref="AuthenticationBuilder"/>, which enables Alipay authentication capabilities.
 /// </summary>
 /// <param name="builder">The authentication builder.</param>
 /// <returns>The <see cref="AuthenticationBuilder"/>.</returns>
 public static AuthenticationBuilder AddAlipay([NotNull] this AuthenticationBuilder builder)
 {
     return(builder.AddAlipay(AlipayAuthenticationDefaults.AuthenticationScheme, options => { }));
 }
 public static AuthenticationBuilder AddAlipay(this AuthenticationBuilder builder)
 => builder.AddAlipay(AlipayDefaults.AuthenticationScheme, _ => { });
 public static AuthenticationBuilder AddAlipay(this AuthenticationBuilder builder, string authenticationScheme, Action <AlipayOptions> configureOptions)
 => builder.AddAlipay(authenticationScheme, AlipayDefaults.DisplayName, configureOptions);
 public static AuthenticationBuilder AddAlipay(this AuthenticationBuilder builder, Action <AlipayOptions> configureOptions)
 => builder.AddAlipay(AlipayDefaults.AuthenticationScheme, configureOptions);