Skip to content

Query WebFinger for OIDC issuer before fetching /.well-known/openid-configuration#776

Open
kaivol wants to merge 2 commits into
opencloud-eu:mainfrom
kaivol:query-webfinger-before-oauth
Open

Query WebFinger for OIDC issuer before fetching /.well-known/openid-configuration#776
kaivol wants to merge 2 commits into
opencloud-eu:mainfrom
kaivol:query-webfinger-before-oauth

Conversation

@kaivol
Copy link
Copy Markdown

@kaivol kaivol commented Jan 11, 2026

Currently, the OpenCloud client relies on the PROXY_OIDC_REWRITE_WELLKNOWN hack to discover the IDP's configuration (except for the initial login, see also #771).

To be able to get rid of this workaround (see also owncloud/ocis#11542 for problems with this approach), this PR changes the OAuth::fetchWellKnown method to get the issuer's location via WebFinger before fetching the issuer's /.well-known/openid-configuration.
These changes also make it possible to get additional data from the WebFinger as required for #246 (comment), for example.


This PR depends on my previous PR #771, the additional changes are in 31745c4.

@kaivol kaivol force-pushed the query-webfinger-before-oauth branch from 31745c4 to 8dd1366 Compare April 7, 2026 10:20
@guruz
Copy link
Copy Markdown
Contributor

guruz commented May 7, 2026

I've added a DO NOT MERGE tag, as I agree that it makes only sense to look at the complete picture, e.g. reviewing #847 that we need for #811
Keeping this open for now still.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants