mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-07-02 07:27:20 +02:00
Activated github auth
This commit is contained in:
parent
ab959a285a
commit
201f8a201f
1 changed files with 1 additions and 1 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