Introduction
The Proxy Provider (ProxyProvider) is a passthrough authentication method that forwards the user’s request to a custom or legacy HTTP endpoint and evaluates the response to determine whether authentication succeeded. No browser redirect to an external IdP is involved.
This is useful for integrating with systems that do not support standard protocols such as OIDC, SAML, or LDAP — for example, a legacy authentication service that accepts Basic Auth and returns a JSON response.
Before configuring your TIB profile, read Dashboard SSO or Portal SSO to understand the ActionType, ReturnURL, and IdentityHandlerConfig fields required for your use case.
How It Works
TIB proxies the incoming authentication request to the configuredTargetHost and evaluates the response:
- The user submits credentials to the TIB endpoint (typically via a form
POSTor HTTP Basic Auth header). - TIB proxies the request to
TargetHost. - TIB evaluates the response against the configured success criteria.
- If successful, TIB extracts the user identity and executes the configured action.
Evaluating Success
TIB evaluates the upstream response in order. At least one ofOKCode, OKResponse, or OKRegex must be configured.
- Hard failure — if the upstream returns HTTP
400or above, authentication fails immediately. OKCode— if set (non-zero), the response status code must exactly match this value.OKResponse— if set, TIB base64-encodes the raw response body and compares it to this value. The configured value must therefore be a base64-encoded string.OKRegex— if set, TIB applies this regular expression against the raw response body.
Extracting User Identity
If authentication succeeds, TIB extracts the user identity to pass to the identity handler:- If
ResponseIsJsonistrue, TIB parses the response body as JSON and extracts values usingAccessTokenFieldandUsernameFieldas JSON field names. - If
ExrtactUserNameFromBasicAuthHeaderistrue, TIB extracts the username from the incoming request’s Basic Auth header. - If no username can be extracted, TIB generates a random identifier and appends
@soSession.comto form a placeholder email address.
TIB Profile
The Proxy Provider configuration goes in theProviderConfig block of the TIB profile. Set ProviderName to ProxyProvider and Type to passthrough.
ProviderConfig fields are:
| Field | Description |
|---|---|
TargetHost | URL of the upstream authentication endpoint. |
OKCode | HTTP status code that indicates a successful response. Set to 0 to disable this check. |
OKResponse | Base64-encoded string that the response body must exactly match. Leave empty to disable. |
OKRegex | Regular expression that must match the raw response body. Leave empty to disable. |
ResponseIsJson | Set to true if the upstream response body is JSON, enabling field extraction via AccessTokenField and UsernameField. |
AccessTokenField | JSON field name in the upstream response containing an access token. |
UsernameField | JSON field name in the upstream response containing the username. |
ExrtactUserNameFromBasicAuthHeader | Set to true to extract the username from the incoming request’s Basic Auth header. Note the intentional typo in the field name — this matches the TIB codebase and must be spelled exactly as shown. |
Login Page
SinceProxyProvider is a passthrough flow, users submit credentials directly to TIB. Create a login page with a form that posts to the TIB authentication endpoint:
ExrtactUserNameFromBasicAuthHeader is set to true.
Worked Example
This example proxies a Basic Auth request to an upstream service. TIB evaluates the HTTP200 response code and extracts the username from the JSON response body.
- Dashboard SSO
- Portal SSO
In this example, Tyk Dashboard is running at With this configuration, registered users (with a Tyk Dashboard user account) get their own permissions; unregistered users fall back to the group specified in See Dashboard SSO for details on session behavior, permissions, and user group mapping.
http://dashboard.example.com on port 3000; replace the example values with your own.Tyk Dashboard configurationsso_default_group_id. See Dashboard SSO for full details.TIB profileThe TIB profile is created via the Tyk Identity Broker API or the Tyk Dashboard UI.- set
DashboardCredentialto the TIB service account’s Dashboard credentials
POST to: