If you’re using the symfony framework, you can always use the oauth bundle. It can be a pain to configure but it handles most of this for you.
If you’re using the symfony framework, you can always use the oauth bundle. It can be a pain to configure but it handles most of this for you.