Class WeChatOAuthService
java.lang.Object
com.bytedesk.core.rbac.auth.wechat.WeChatOAuthService
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final com.fasterxml.jackson.databind.ObjectMapperprivate final WeChatProperties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexchangeCodeForToken(String code, String redirectUri) fetchUserInfo(String accessToken, String openid) private org.springframework.web.client.RestTemplate
-
Field Details
-
properties
-
objectMapper
private final com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
Constructor Details
-
WeChatOAuthService
public WeChatOAuthService()
-
-
Method Details
-
restTemplate
private org.springframework.web.client.RestTemplate restTemplate() -
exchangeCodeForToken
-
fetchUserInfo
-