mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-30 15:03:57 +00:00
comment
This commit is contained in:
@@ -89,6 +89,7 @@ class OAuthProvider extends AuthProviderBase {
|
|||||||
|
|
||||||
// Fallback to id_token in case the access_token is not a JWT
|
// Fallback to id_token in case the access_token is not a JWT
|
||||||
// https://www.oauth.com/oauth2-servers/access-tokens/
|
// https://www.oauth.com/oauth2-servers/access-tokens/
|
||||||
|
// https://github.com/dbgate/dbgate/issues/727
|
||||||
if (!payload && id_token) {
|
if (!payload && id_token) {
|
||||||
payload = jwt.decode(id_token);
|
payload = jwt.decode(id_token);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user