Using Terminal 3 for single sign-on (SSO)
client_id
and client_secret
to begin testing integration.
We will also need a redirect_uri
from you.
We generate a “magic” link for the user to continue
https://api.terminal3.io/v1/openidc/authorize
with the following parameters:response_type
=code
scope
=openid
client_id
=<your client ID>redirect_uri
=https://yourSite.xyz/callback
state
=<your state> (optional)Terminal 3 authenticates the user and redirects them to your site
redirect_uri
with a one-time code
(valid within 5 minutes) and state
(if applicable)https://yourSite.xyz/callback
with the following parameters:code
=<a generated one-time code>state
=<state from Step 1>Request Terminal 3 to exchange a one-time code for the access token
grant_type
=authorization_code
code
=<a generated code from Terminal 3>client_id
=<your client ID>client_secret
=<your client secret>redirect_uri
=https://yourSite.xyz/callback
v2
API here for the token instead of v1
id_token
is a JWT token that contains basic information about the user, including:<yourNamespace>_username
is an example application-specific data field you may choose to useaccess_token
is a JWT token used for accessing a particular resource via the Terminal 3 API.<yourNamespace>_username
).
Please discuss with us what your specific business needs are.