Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

matthewandrews
Copy link
Member

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.

Copy link
Contributor

@sbearcsiro sbearcsiro left a 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:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. If we're defining a var for this, then the list at cas.authn.oidc.discovery.scopes in application.yml should also use it.
  2. This list is missing digivol/internal

{
"issuer": "{{auth_cas_url}}/oidc",
"scopes_supported": [
{% for ascope in cas_oidc_well_known_scopes %}
Copy link
Contributor

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": [
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants