feat: 整合OAuth2授权码模式
Former-commit-id: 32a49be8114823346ce30f402b23beb9cf724c47
This commit is contained in:
@@ -33,8 +33,9 @@ function youlaiHandleClick(thirdpart: string) {
|
|||||||
// const appid = 'xxxxx'
|
// const appid = 'xxxxx'
|
||||||
// const redirect_uri = encodeURIComponent('xxx/redirect?redirect=' + window.location.origin + '/auth-redirect')
|
// const redirect_uri = encodeURIComponent('xxx/redirect?redirect=' + window.location.origin + '/auth-redirect')
|
||||||
const url =
|
const url =
|
||||||
'http://localhost:9999/oauth2/authorization/gateway-client-authorization-code?redirect_uri=http://localhost:3000/#/dashboard';
|
'http://localhost:9999/oauth2/authorization/gateway-client-authorization-code?redirect_uri=http://localhost:3000';
|
||||||
window.open(url, thirdpart);
|
// window.open(url, thirdpart);
|
||||||
|
window.location.href = url;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user