spring security oauth2 支付宝 授权登录
官网:https://opendocs.alipay.com/open/263/105808
*****************************
示例
********************
配置文件
application.yml
alipay:
appId: ******
gatewayUrl: https://openapi.alipaydev.com/gateway.do
format: json
charset: utf-8
signType: RSA2
app-private-key: MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDjwdlzclLbTeii8NErD3I1z6puq07STpPPKK4mPbRKKgJ4JD+4DAr4DiKxIqC/kdX1jnm+1KvfwMivj+jUuPPBz/ktfZ98cnW/IJbi9b7+H+li7ykFWkXrITKLCy0M2e+U2eVoMm6122nQm0Tl0RUwjDm6V1AOWnjKE3VCqD9Ldjn4sslQgyuSIze2WmfEhnUQXH3E4khoCf7SW4UV1DBwA7/kTDaFh/jlhAgScvdx6/oharwYL9XDIbPjGMi0CPk/xgTzQV+jdkOsEH8y/kiQYk4GxOaWT8QvVGMHfDRgpmYZgnVSNXNg/Q62PQJuQeINk4ELWMKfrM/tlM1uAo77AgMBAAECggEBAKUej+DTvGBD/mnK/0ohm6KJmL09MxrjXuOsUX1l9MRj6oBhf1SWXolx7hLP0Qyx1RV+oqMIGkdQw+4L/jfiks4rUjJ5xdt6PAVBwkJu+XXReumADBRWWyRZYARQKOwNQFWBF4FQNtVfajqTpwKab6tPrjZ7QI33Z2TRcIzP33t7r7z3Xh31CMp76fNv/++OG54BgLtzAdoNS9uDQkBrQ/lcA1UXiJ5u0SVYP+Q/suX/xQjmyA8En77C/r19JkTWiYocdGdnD6B/sHJTFzD4qGjZNjm99CpG2vnMI/TWj6HyQBXUmPMki467gTpAJ6X0QYpd/JVz9uXM/qRnr6IJs7ECgYEA+feCOx7Sc3aqhCoLkqai4qZModUxYVhDT6UVMo5U1q/37kUvGXBC0brWePc3Bk40WErYZMXRxufcGt/KgG7XUV/PEd7Y2AHYbpRwl9p8Kuyk1EXmPyfpOb30tpCT2sdc9fIYkgoXmjTUaRgZpaF4cunlpJv04I0pjhX2FWnWeFkCgYEA6UEcwQy3kDN0fxKM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ueawIDAQAB
oauth2:
alipay:
client:
user-authorization-uri: "https://openauth.alipaydev.com/oauth2/publicAppAuthorize.htm"
scope: auth_user
********************
config 层
AlipayProperties:客户端配置属性
@Data
@Component
@ConfigurationProperties("alipay")
public class AlipayProperties {
private String appId;
private String gatewayUrl;
private String format;
private String charset;
private St