Class AppleOAuthService
java.lang.Object
com.bytedesk.core.rbac.auth.apple.AppleOAuthService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final com.fasterxml.jackson.databind.ObjectMapperprivate final AppleProperties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexchangeCodeForTokens(String code, String redirectUri) 使用授权码获取访问令牌生成Apple客户端密钥JWTprivate PrivateKey获取私钥parseUserInfo(String userJson) 解析用户信息private org.springframework.web.client.RestTemplateverifyAndParseIdToken(String idToken) 验证并解析Apple ID Token
-
Field Details
-
properties
-
objectMapper
private final com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
Constructor Details
-
AppleOAuthService
public AppleOAuthService()
-
-
Method Details
-
restTemplate
private org.springframework.web.client.RestTemplate restTemplate() -
generateClientSecret
生成Apple客户端密钥JWT -
getPrivateKey
获取私钥- Throws:
Exception
-
verifyAndParseIdToken
验证并解析Apple ID Token -
exchangeCodeForTokens
使用授权码获取访问令牌 -
parseUserInfo
解析用户信息
-