netlify / gotrue

An SWT based API for managing users and issuing SWT tokens.
https://www.gotrueapi.org
MIT License
3.82k stars 283 forks source link

Customize ExternalProvider Callback #262

Closed vHanda closed 2 years ago

vHanda commented 3 years ago

Currently when you call /authorize?provider=<provider> this will result in calling back the http referrer or the configured SITE_URL depending on if the hostname is the same.

I would like to use gotrue in GitJournal as the backend for managing users. This has both mobile apps, and an upcoming web-version. In specific cases I want to gotrue to redirect to a specific url in the mobile app gitjournal://... and a separate endpoint in the case of the web version.

I could add a 'callback' parameter to the /authorize endpoint which would let me configure it, do you think that would be acceptable? I'm opening an issue before creating a pull request, just to find out if it will be accepted upstream or not.

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had activity in 1 year. It will be closed in 7 days if no further activity occurs. Thanks!

github-actions[bot] commented 2 years ago

This issue was closed because it had no activity for over 1 year.