* sources/oauth: periodically update OAuth sources' OIDC configuration Signed-off-by: Jens Langhammer <jens@goauthentik.io> * make monitored task Signed-off-by: Jens Langhammer <jens@goauthentik.io> --------- Signed-off-by: Jens Langhammer <jens@goauthentik.io>
13 lines
403 B
Python
13 lines
403 B
Python
"""OAuth source settings"""
|
|
from celery.schedules import crontab
|
|
|
|
from authentik.lib.utils.time import fqdn_rand
|
|
|
|
CELERY_BEAT_SCHEDULE = {
|
|
"update_oauth_source_oidc_well_known": {
|
|
"task": "authentik.sources.oauth.tasks.update_well_known_jwks",
|
|
"schedule": crontab(minute=fqdn_rand("update_well_known_jwks"), hour="*/3"),
|
|
"options": {"queue": "authentik_scheduled"},
|
|
},
|
|
}
|