pow-auth / assent

Multi-provider framework in Elixir
https://powauth.com
MIT License
391 stars 45 forks source link

Remove `id_token` from `response_type` and update docs #30

Closed danschultzer closed 4 years ago

danschultzer commented 4 years ago

Per discussion in #29 this removes the id_token from the response_type since it's not needed for the code auth flow. I've also updated the docs.

Ivor commented 4 years ago

I checked out this branch for my application.

In Azure Created a new "App Registration" to get the client_id which is the Application ID. Created a client_secret under Certificates and Secrets application in the application.

In my config I then configured only the following in my config file for the :azure provider in :pow_assent.

[
  client_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  client_secret: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  tenant_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  strategy: Assent.Strategy.AzureAD
]

I was able to authenticate with a new user which was then created along with the user_identity without any problems.

danschultzer commented 4 years ago

Thanks! v0.1.6 released 🚀

Ivor commented 4 years ago

Thanks for the quick turn around. Much appreciated!