feat: 整合OAuth2授权码模式

This commit is contained in:
horizons 2022-09-10 17:43:55 +08:00
parent 35e4c7754d
commit 32a49be811
1 changed files with 3 additions and 2 deletions

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;
}
/**