Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
4a4e323a
Commit
4a4e323a
authored
May 27, 2024
by
Jun Siang Cheah
Browse files
refac: rename OPENID -> OAUTH
parent
776bb289
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
backend/config.py
backend/config.py
+6
-6
No files found.
backend/config.py
View file @
4a4e323a
...
@@ -318,16 +318,16 @@ if (
...
@@ -318,16 +318,16 @@ if (
}
}
if
(
if
(
os
.
environ
.
get
(
"O
PENID
_CLIENT_ID"
)
os
.
environ
.
get
(
"O
AUTH
_CLIENT_ID"
)
and
os
.
environ
.
get
(
"O
PENID
_CLIENT_SECRET"
)
and
os
.
environ
.
get
(
"O
AUTH
_CLIENT_SECRET"
)
and
os
.
environ
.
get
(
"OPENID_PROVIDER_URL"
)
and
os
.
environ
.
get
(
"OPENID_PROVIDER_URL"
)
):
):
OAUTH_PROVIDERS
[
"oidc"
]
=
{
OAUTH_PROVIDERS
[
"oidc"
]
=
{
"client_id"
:
os
.
environ
.
get
(
"O
PENID
_CLIENT_ID"
),
"client_id"
:
os
.
environ
.
get
(
"O
AUTH
_CLIENT_ID"
),
"client_secret"
:
os
.
environ
.
get
(
"O
PENID
_CLIENT_SECRET"
),
"client_secret"
:
os
.
environ
.
get
(
"O
AUTH
_CLIENT_SECRET"
),
"server_metadata_url"
:
os
.
environ
.
get
(
"OPENID_PROVIDER_URL"
),
"server_metadata_url"
:
os
.
environ
.
get
(
"OPENID_PROVIDER_URL"
),
"scope"
:
os
.
environ
.
get
(
"O
PENID
_SCOPE"
,
"openid email profile"
),
"scope"
:
os
.
environ
.
get
(
"O
AUTH
_SCOPE
S
"
,
"openid email profile"
),
"name"
:
os
.
environ
.
get
(
"O
PENID
_PROVIDER_NAME"
,
"SSO"
),
"name"
:
os
.
environ
.
get
(
"O
AUTH
_PROVIDER_NAME"
,
"SSO"
),
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment