danschultzer / phoenix_oauth2_provider

Get an OAuth 2 provider running in your phoenix with controllers, views and models in just two minutes
MIT License
84 stars 41 forks source link

Can I disable redirect_uri and authorization token? #33

Closed lucasbesen closed 4 years ago

lucasbesen commented 4 years ago

I'm planning to use this lib for server to server authentication, so, I don't need the authorization code and redirect_uri.

Is there a way to disable it?

danschultzer commented 4 years ago

You can set the grant flows so only client_credentials is permitted:

grant_flows: ~w(client_credentials)