feat: add client authentication strategy#565
Conversation
aeneasr
left a comment
There was a problem hiding this comment.
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 |
aeneasr
left a comment
There was a problem hiding this comment.
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
ClientAuthenticationStrategytype to provide an extension point for custom client authentication methodsFosite.DefaultClientAuthenticationas fosite's default and backward compatible client authentication strategy. Its content is 100% the current fosite's client authentication logicFosite.WithDefaultClientAuthenticationto 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
security@ory.sh) from the maintainers to push
the changes.
works.
appropriate).