You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would recommend keeping those separate routes and adding another route to generate them both at the same time. You will need to change up the hooks file to support both ropc and cc. For generating the ropc token call grantUserToken and for cc call grantClientToken.
This will allow you to do one or the other or both, depending on the situation. If you would like some examples let me know. I will look into if we should add this in.
Hi,
I would like to use both Authorization Grant CC and ROPC with same tokenEndpoint.
restifyOAuth2.cc(server, {tokenEndpoint: "/token", hooks: restifyOAuth2Hooks});
restifyOAuth2.ropc(server, {tokenEndpoint: "/token", hooks: restifyOAuth2RopcHooks});
What is the best way to setup or patch?
Regards,
The text was updated successfully, but these errors were encountered: