/authorize
flow would then validate inbound requests against the Redirect URI on record.
Keep your current OAuth application settings
Extend your existing OAuth callback endpoint with Vital Link awareness
state
query parameter to differentiate the request
origin, i.e., whether it is from Vital or from your own production systems.OAuth requests originated from Vital would have the Vital Link Token as the state
query parameter.
Vital Link Token is a JSON Web Token (JWT), so you can use the unverified claims of the JWT as a discriminator.When you detect a valid Vital Link Token, perform a 307 Temporary Redirect
to the Vital OAuth callback endpoint and passing on all the URL query parameters.The exact JWT structure of the Vital Link Token is as follows:Encoding
aud
claim matches the
expected Vital Link API Base URL.Claim payload schema
Key | Value |
---|---|
aud | Vital Link API Base URL |
sub | Vital Link Session ID |
team_id | Vital Team ID |
user_id | Vital User ID |
Vital Link API Base URL
Environment | Base URL |
---|---|
Production US | https://api.tryvital.io/v2/link |
Production EU | https://api.eu.tryvital.io/v2/link |
Sandbox US | https://api.sandbox.tryvital.io/v2/link |
Sandbox EU | https://api.sandbox.eu.tryvital.io/v2/link |
Vital OAuth callback endpoint URL
Environment | Base URL |
---|---|
Production US | https://api.tryvital.io/v2/link/connect/{PROVIDER} |
Production EU | https://api.eu.tryvital.io/v2/link/connect/{PROVIDER} |
Sandbox US | https://api.sandbox.tryvital.io/v2/link/connect/{PROVIDER} |
Sandbox EU | https://api.sandbox.eu.tryvital.io/v2/link/connect/{PROVIDER} |
Example
Register your OAuth callback endpoint with Vital