-
Notifications
You must be signed in to change notification settings - Fork 368
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
feat: add client authentication strategy #565
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, this makes sense to me!
However, I think it would make sense to have a small helper function like f.authenticateClient()
which returns the default strategy unless another strategy was set. This will prevent potential panics for people who forget to call WithDefaultClientAuthentication
ef7d318
to
93aaebd
Compare
great idea, it's done! Actually it made the pull request is even smaller |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thank you! 🎉 Your contribution makes Ory better :)
Oh, unfortunately, for some reason, the CircleCI tests are not running. Do you maybe have a fork on CircleCI of ory/fosite that you follow? If so, you need to unsubscribe / unwatch that fork. Then, you need to make another push to your branch using:
That should get the CI running! Thank you :) |
93aaebd
to
068d1d9
Compare
It works now. I did nothing with CircleCI. I unsubscribed my branch from Travis-CI and amended the commit. One of the two made it work :) |
Nice, thank you! :) |
Related issue
#564
Proposed changes
ClientAuthenticationStrategy
type to provide an extension point for custom client authentication methodsFosite.DefaultClientAuthentication
as fosite's default and backward compatible client authentication strategy. Its content is 100% the current fosite's client authentication logicFosite.WithDefaultClientAuthentication
to use fosite's default client authentication strategyChecklist
and signed the CLA.
vulnerability. If this pull request addresses a security vulnerability, I
confirm that I got green light (please contact
[email protected]) from the maintainers to push
the changes.
works.
appropriate).