Skip to content

Conversation

@sandhose
Copy link
Member

This makes it possible to use non-OIDC providers as upstream OAuth 2.0 providers, like GitHub.

Helps with #2080

This makes it possible to use non-OIDC providers as upstream OAuth 2.0 providers, like GitHub.
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Nov 27, 2024

Deploying matrix-authentication-service-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: f8d2823
Status: ✅  Deploy successful!
Preview URL: https://ef0f8a47.matrix-authentication-service-docs.pages.dev
Branch Preview URL: https://quenting-upstream-oauth-id-t.matrix-authentication-service-docs.pages.dev

View logs

let token_request = http_client.post(token_endpoint.as_str());
let token_request = http_client
.post(token_endpoint.as_str())
.header(ACCEPT, APPLICATION_JSON.as_ref());
Copy link
Member Author

Choose a reason for hiding this comment

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

GitHub will return us a URL-encoded form if we don't do this. OAuth 2.0 expects to always return application/json, but also for the relying party to ask for it.

@sandhose sandhose merged commit 2c01b43 into main Nov 29, 2024
19 checks passed
@sandhose sandhose deleted the quenting/upstream-oauth/id-token-optional branch November 29, 2024 09:31
@sandhose sandhose added the A-Upstream-OAuth Related to login via upstream OAuth 2.0 providers label Nov 29, 2024
@sandhose sandhose changed the title Make the id_token optional on upstream OAuth 2.0 providers Make the id_token optional on upstream OAuth 2.0 providers Dec 16, 2024
@sandhose sandhose added the T-Enhancement New feature of request label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Upstream-OAuth Related to login via upstream OAuth 2.0 providers T-Enhancement New feature of request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants