feat: 整合OAuth2授权码模式

Former-commit-id: 32a49be8114823346ce30f402b23beb9cf724c47
This commit is contained in:
horizons
2022-09-10 17:43:55 +08:00
parent 37c2197e76
commit 90c6059f3f

View File

@@ -33,8 +33,9 @@ function youlaiHandleClick(thirdpart: string) {
// const appid = 'xxxxx'
// const redirect_uri = encodeURIComponent('xxx/redirect?redirect=' + window.location.origin + '/auth-redirect')
const url =
'http://localhost:9999/oauth2/authorization/gateway-client-authorization-code?redirect_uri=http://localhost:3000/#/dashboard';
window.open(url, thirdpart);
'http://localhost:9999/oauth2/authorization/gateway-client-authorization-code?redirect_uri=http://localhost:3000';
// window.open(url, thirdpart);
window.location.href = url;
}
/**