Skip to content

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

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

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

Conversation

@kaivol

@kaivol kaivol commented Jan 11, 2026 •

Copy link
Copy Markdown
Contributor

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

guruz commented May 7, 2026

Copy link
Copy Markdown
Contributor

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.

@TheOneRing

Copy link
Copy Markdown
Contributor

Closing now that #847 is merged

@TheOneRing TheOneRing closed this Jul 22, 2026
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.

3 participants