mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-06-08 18:09:06 +02:00
Activated github auth
This commit is contained in:
parent
46a19bebd7
commit
f06e3751ef
2 changed files with 4 additions and 4 deletions
|
@ -149,7 +149,7 @@ def build_config() -> dict[str, Any]:
|
|||
c["www"] = {
|
||||
"avatar_methods": [util.AvatarGitHub()],
|
||||
"port": int(os.environ.get("PORT", "1810")),
|
||||
"auth": util.UserPasswordAuth({"JulienMalka": "hello"}),
|
||||
"auth": util.GitHubAuth("bba3e144501aa5b8a5dd", str(read_secret_file("github-oauth-secret")).strip()),
|
||||
"authz": util.Authz(
|
||||
roleMatchers=[
|
||||
util.RolesFromUsername(roles=["admin"], usernames=github_admins)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue