Skip to content

Commit

Permalink
Don't refresh the token on spawn
Browse files Browse the repository at this point in the history
This call is expensive and users most probably have a new token already.
It has been enabled since OAuthenticator️ v16.0.0
  • Loading branch information
diocas committed Oct 23, 2023
1 parent 26eac6d commit 54405d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swan-cern/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,10 @@ swan:
client_id: # placeholder, check secrets
client_secret: # placeholder, check secrets
oauth_callback_url: # placeholder, check secrets

# skip refreshing tokens if already refreshed in last 110 minutes
# this assumes tokens provided by keycloak are valid for 120 minutes
auth_refresh_age: 6600
refresh_pre_spawn: false
JupyterHub:
allow_named_servers: False
SwanKubeSpawner:
Expand Down

0 comments on commit 54405d4

Please sign in to comment.