mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: bug
--bug=1051986 --user=王孝刚 【登录】登录页面选择 OAuth2 方式,没有反应 https://www.tapd.cn/57709429/s/1650890
This commit is contained in:
parent
194cce2914
commit
a2cb4fc0ee
|
|
@ -179,7 +179,7 @@ function redirectAuth(authType: string) {
|
|||
if (authType === 'OIDC') {
|
||||
url = `${config.authEndpoint}?client_id=${config.clientId}&redirect_uri=${redirectUrl}&response_type=code&scope=openid+profile+email`
|
||||
}
|
||||
if (authType === 'OAUTH2') {
|
||||
if (authType === 'OAuth2') {
|
||||
url =
|
||||
`${config.authEndpoint}?client_id=${config.clientId}&response_type=code` +
|
||||
`&redirect_uri=${redirectUrl}&state=${res.data.id}`
|
||||
|
|
|
|||
Loading…
Reference in New Issue