How to use custom Grant Handlers
davidseth opened this issue · comments
David Peterson commented
The README has a section on "Customizing Grant Handlers". It has some code that says to create a custom class MyTokenEndpoint which extends TokenEndpoint. Where would I put this code and how would I reference/use it?
Essentially I want to set "clientCredentialRequired = false"
Thanks, David
Tsuyoshi Yoshizawa commented
Do you extend OAuth2Provider
of play2-oauth2-provider
to your provider?
Then you can override tokenEndpoint
instance field to you implemented TokenEndPoint
.
David Peterson commented
Perfect, Got it working in a few minutes. Awesome framework.