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

API only #20

Closed elpic closed 5 years ago

elpic commented 5 years ago

Is there a configuration to use this module as an API only?

For example, if I'm only interested in grant_type=client_credentials this option doesn't require a browser interaction, but if I don't add the plug fetch_session and fetch_flash the call ends up in an error.

danschultzer commented 5 years ago

I would recommend just using https://github.com/danschultzer/ex_oauth2_provider and set up your own controllers to manage the flow. For an API with just client_credentials you won't need this library.