Skip to content

Commit

Permalink
feat: set webapi token exp. to 15 min and refresh when 4 min left
Browse files Browse the repository at this point in the history
...to simulate a session timeout (inactivity timeout) of 15 min
  • Loading branch information
pieterlukasse committed Jul 11, 2024
1 parent e2a375b commit d61607a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions kube/services/ohdsi-atlas/ohdsi-atlas-config-local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ data:
configLocal.cohortComparisonResultsEnabled = false;
configLocal.userAuthenticationEnabled = true;
configLocal.plpResultsEnabled = false;
configLocal.refreshTokenThreshold = 1000 * 60 * 4; // refresh auth token if it will expire within 4 minutes
return configLocal;
});
Expand Down
2 changes: 1 addition & 1 deletion kube/services/ohdsi-webapi/ohdsi-webapi-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ stringData:

security_cors_enabled: "true"
security_origin: "*"
security_token_expiration: "43200"
security_token_expiration: "900"
security_ssl_enabled: "false"

security_provider: AtlasRegularSecurity
Expand Down

0 comments on commit d61607a

Please sign in to comment.