chore(auth): generalize authentication method to internals of NixOS module
This makes it easier to make it configurable, this is step 1. Signed-off-by: Raito Bezarius <raito@lix.systems>
This commit is contained in:
parent
72fae31bde
commit
5e2108c39d
1 changed files with 10 additions and 0 deletions
|
@ -241,6 +241,16 @@ in
|
|||
util.JanitorConfigurator(logHorizon=timedelta(weeks=4), hour=12, dayOfWeek=6)
|
||||
''
|
||||
''
|
||||
# TODO(raito): make me configurable from the NixOS module.
|
||||
# how?
|
||||
LixSystemsOAuth2 = make_oauth2_method(OAuth2Config(
|
||||
name='Lix',
|
||||
faIcon='fa-login',
|
||||
resourceEndpoint='https://identity.lix.systems',
|
||||
authUri='https://identity.lix.systems/realms/lix-project/protocol/openid-connect/auth',
|
||||
tokenUri='https://identity.lix.systems/realms/lix-project/protocol/openid-connect/token'
|
||||
)
|
||||
|
||||
GerritNixConfigurator(
|
||||
"${cfg.gerrit.domain}",
|
||||
"${cfg.gerrit.username}",
|
||||
|
|
Loading…
Reference in a new issue