-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cas: add option for static .well-known #868
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just needs consistency around scopes.
# If cas_oidc_well_known_static is set to true in an inventory, nginx will serve the response directly from a static file. | ||
cas_oidc_well_known_static: false | ||
# OICD scopes for CAS | ||
cas_oidc_well_known_scopes: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- If we're defining a var for this, then the list at
cas.authn.oidc.discovery.scopes
inapplication.yml
should also use it. - This list is missing digivol/internal
{ | ||
"issuer": "{{auth_cas_url}}/oidc", | ||
"scopes_supported": [ | ||
{% for ascope in cas_oidc_well_known_scopes %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should have an additional loop after this one for the cas_extra_scopes var
"claim_types_supported": [ | ||
"normal" | ||
], | ||
"claims_supported": [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fine but is technically derived from application config (the static app config that's built into the JAR). Something to keep in mind if the app config is updated.
This adds the option for the /cas/oidc/.well-known file to be delivered as a static file by nginx, so that when the CAS app is down, .well-known is still available: this endpoint is required by apps using OIDC, and we've found that .well-known being unavailable can cause apps to fail to start.