Simon
Simon
For [labels](https://github.com/dwyl/labels/issues/104) we only want to allow users to login with **Github**. So when creating a new app on auth we can define which methods are allowed to be used...
run mix deps.update --all to update all the dependencies
Currently the scope used for Github oauth is defined manually: https://github.com/dwyl/auth/blob/e1216674c478d5fcb983f0c2f919829a50db1ca2/lib/auth_web/controllers/auth_controller.ex#L65 However with our [Labels application](https://github.com/dwyl/labels/) we want to allow users to login with Github and to be able to...
The seeds file create an admin user from the `ADMIN_EMAIL` environment variable: https://github.com/dwyl/auth/blob/3a9d68720c02d2a8bdec33ffd8b70c35a4e5289a/priv/repo/seeds.exs#L20-L28 When login with this email using email/password the user is retreived from the database and the welcome...
It took me a while to understand the workflow of the app after not working on it for a while. This issue contains my notes while I'm going over the...
While reviewing the authentication process of the application i noticed that if an invalid `auth_client_id` query parameter is used the application will crash, ex: https://dwylauth.herokuapp.com/?auth_client_id=42  This is due to...
If a person login to the application using Google first, no password is saved in the database. If then the same person try to register/login with email/password the application find...
The application is used for user to - manage api keys which allow people to create application using the dwyl API - authenticate with auth and recieve a jwt to...
The following code adds the jwt to the referrer value (ie the "main" application url): https://github.com/dwyl/auth/blob/9744fe50c697b613749f07c55b10bcb19744e83d/lib/auth_web/controllers/auth_controller.ex#L384-L385 However it will remove all existing query parameters and replace them with only the...