Files
ubicloud/clover.rb
Jeremy Evans 68ac6122b6 Handle OIDC providers where issuer includes a path
This would previously not work correctly. If you did not include
the path in OidcProvider#url, the issuer check would break. If you
did include the path in OidcProvider#url, the CSP wouldn't allow
the form submission, since it would go to the issuer URL and not
the authorization endpoint URL.

In OidcProvider.register, always use the issuer specified in the
OIDC configuration. Also, allow the /.well-known/openid-configuration
in subpaths and not just the top level. Have the url argument to
the method accept a path that already ends with
/.well-known/openid-configuration, and use it directly if so.

In the CSP, remove the path, so it will allow all paths for the
domain.
2025-08-01 04:44:02 +09:00

39 KiB