-
Notifications
You must be signed in to change notification settings - Fork 13
oauth logic
Evan Feenstra edited this page Jun 19, 2020
·
2 revisions
Logic for the Oauth popup
- App is opened with "?action=challenge&host=xxx&id=xxx&challenge=xxx"
- Popup an "Authorize With" modal, that shows the "host" url
- When user clicks Authorize:
- GET relay /signer/{challenge} (returns an object with "sig" field)
- Open user's default browser:
https://auth.sphinx.chat/oauth_verify?id={id}&sig={sig}&pubkey={MYPUBKEY}