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

fix: use AuthURLParam to set client id and secret #216

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

shipperizer
Copy link
Contributor

@shipperizer shipperizer commented Nov 13, 2024

workaround to deal with golang/oauth2#320

tldr is that IDP servers tend to not be fully compliant with how client
credentials are passed and have bespoke arrangements so anything goes
this enforces the standard implementation from the RFC and has it working
for any RFC compliant OIDC server

full info here golang/oauth2#320

supersedes #204

@shipperizer shipperizer requested a review from a team as a code owner November 13, 2024 10:21
@shipperizer shipperizer force-pushed the cc/secret branch 2 times, most recently from 55eccc5 to a5a3be5 Compare November 13, 2024 10:31
@didrocks
Copy link
Member

Thanks for adding the comments + fix the slice. I will give it a try on msentraid and enabled the tests in CI.

internal/broker/broker.go Outdated Show resolved Hide resolved
@didrocks
Copy link
Member

Tests are passing on MSEntraID.

@shipperizer shipperizer force-pushed the cc/secret branch 2 times, most recently from a69ef9d to 96ed371 Compare November 13, 2024 10:49
Co-authored-by: 3v1n0 <mail@3v1n0.net>

workaround to deal with golang/oauth2#320

tldr is that IDP servers tend to not be fully compliant with how client
credentials are passed and have bespoke arrangements so anything goes
this enforces the standard implementation from the RFC and has it working
for any RFC compliant OIDC server

full info here golang/oauth2#320
Copy link
Member

@didrocks didrocks left a comment

Choose a reason for hiding this comment

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

Excellent! Everything’s passing now. Let’s merge. Thanks a lot!

@didrocks didrocks merged commit 0235101 into ubuntu:main Nov 13, 2024
4 checks passed
@shipperizer shipperizer deleted the cc/secret branch November 13, 2024 11:54
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