|
@@ -64,15 +64,11 @@ public class OauthRestController {
|
|
var token = HttpContextUtil.mustToken();
|
|
var token = HttpContextUtil.mustToken();
|
|
logger.info("key", "oauth/douyin/code", "state", state, "token", token);
|
|
logger.info("key", "oauth/douyin/code", "state", state, "token", token);
|
|
oauthService.saveStateMapping(token, state);
|
|
oauthService.saveStateMapping(token, state);
|
|
-// return new RedirectDto("https://open.kuaishou.com/oauth2/connect?" +
|
|
|
|
-// "app_id=" + OauthConfig.kuaishouClientKey + "&response_type=code&" +
|
|
|
|
-// "scope=user_info%2Cuser_video_info&" +
|
|
|
|
-// "redirect_uri=https%3A%2F%2Fimport.smcic.net%2Fkuaishou%2Fcallback-open&state=" + state);
|
|
|
|
-
|
|
|
|
return new RedirectDto("https://open.kuaishou.com/oauth2/connect?" +
|
|
return new RedirectDto("https://open.kuaishou.com/oauth2/connect?" +
|
|
"app_id=" + OauthConfig.kuaishouClientKey + "&response_type=code&" +
|
|
"app_id=" + OauthConfig.kuaishouClientKey + "&response_type=code&" +
|
|
"scope=user_info%2Cuser_video_info&" +
|
|
"scope=user_info%2Cuser_video_info&" +
|
|
- "redirect_uri=https%3A%2F%2Fopen.sxtvs.net%2Foauth%2Fkuaishou%2Fcallback&state=" + state);
|
|
|
|
|
|
+ "redirect_uri=https%3A%2F%2Fimport.smcic.net%2Fkuaishou%2Fcallback-open&state=" + state);
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
@RequestMapping("toutiao/code")
|
|
@RequestMapping("toutiao/code")
|