Tyk comes with support for OpenID Connect Identity Tokens provided by any standards compliant OIDC provider.
The OIDC Flow:
- A User logs in via a supported OIDC Provider to request access to their resource.
- The User gains access to the Provider and uses their service.
- The Identity Provider generates an OIDC
id_tokenwhich is signed by provider with their private key and returned to the user
- The User’s client utilises OIDC ID Token as access token for an API managed by Tyk Gateway.
- Tyk Gateway validates the OIDC ID Token signature.
- Tyk Gateway checks the IDP is a recognised IDP (registered as approved).
- Tyk Gateway verifies the client ID as one that is trusted and pre-registered with Tyk Gateway.
- If the client ID is valid, Tyk applies the policy ID matched with this client to the user session.
- Tyk then validates the users session according to the quotas, rate limits and access rules for the matching policy for either the bearer of the token across all clients they use from this IDP or validates the session on a per client / per identity basis. For example, user Alice will have different Access Rules depending on whether they are using a mobile client or a web client.
- The Tyk Gateway then proxies request to the target.
With this flow, Tyk does not need to be aware of the user or the token in advance, it only needs to know about the approved IDPs, approved ClientIDs within those IDPs and which Policy to apply to those Client IDs.
Auth0 example flow
For more details about our OpenID Connect support see OpenID Integration.