Ash FrameworkAF
Ash Framework3y ago
2 replies
Jason

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.
authorize_url fn _, _ -> {:ok, "https://exampe.com/authorize"} end

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.
Was this page helpful?