authorize_url for Google oauth
Hi @jart I was able to get github oauth to work following the getting started with Github guide, and now trying to get google oauth to work using oauth2. The doc's example for the authorize_url value is this.
If the path 'authorize' should be added to the router, I'm not sure what kind of module it should point to. Can you give me some pointers?
I tried
/auth/user/google/
as the authorize_url but it causes an ERR_TOO_MANY_REDIRECTS browser error, so I'm guessing that's not the right url.2 Replies
You can go by the default configuration in assent's google strategy. Feel free to open a PR to support google out of the box - should be relatively simple.
https://github.com/pow-auth/assent/blob/main/lib/assent/strategies/google.ex#L33-L42
GitHub
assent/google.ex at main · pow-auth/assent
Multi-provider framework in Elixir. Contribute to pow-auth/assent development by creating an account on GitHub.
Thank you. Will look into it. It's working!!