mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 12:25:20 +00:00
refac
This commit is contained in:
parent
73f38dce88
commit
dbbdad3ebd
1 changed files with 10 additions and 3 deletions
|
|
@ -349,10 +349,17 @@ class OAuthClientManager:
|
||||||
|
|
||||||
if (
|
if (
|
||||||
oauth_client_info.server_metadata
|
oauth_client_info.server_metadata
|
||||||
and "S256"
|
and oauth_client_info.server_metadata.code_challenge_methods_supported
|
||||||
in oauth_client_info.server_metadata.code_challenge_methods_supported
|
|
||||||
):
|
):
|
||||||
kwargs["code_challenge_method"] = "S256"
|
if (
|
||||||
|
isinstance(
|
||||||
|
oauth_client_info.server_metadata.code_challenge_methods_supported,
|
||||||
|
list,
|
||||||
|
)
|
||||||
|
and "S256"
|
||||||
|
in oauth_client_info.server_metadata.code_challenge_methods_supported
|
||||||
|
):
|
||||||
|
kwargs["code_challenge_method"] = "S256"
|
||||||
|
|
||||||
self.clients[client_id] = {
|
self.clients[client_id] = {
|
||||||
"client": self.oauth.register(**kwargs),
|
"client": self.oauth.register(**kwargs),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue