gofractally / psibase

Open source protocol enabling communities to easily self-host web applications
https://docs.psibase.io
MIT License
28 stars 7 forks source link

Add redirect uri options to workshop #863

Open Velua opened 1 month ago

Velua commented 1 month ago

When handling valid redirect urls, we need to support either a full URL or simply a path on the app.

Examples

Path only

&redirect=/invite-response -> http://invitingApp.psibase.127.0.0.1.sslip.io:8080/invite-response

Full domain

&redirect=https://api.monstereos.com/invite-response -> https://api.monstereos.com/invite-response

If path array is empty, all paths are wildcarded. This behavior does not apply for full urls.