You have found an old page
Visit the new DocsGenerate Auth Token via the Proxy Provider
The below configuration will use principles already familiar to us, it will utilise the proxy provider to extract identity information, if the response code is 200
, it will use the GenerateTemporaryAuthToken
action type to generate a standard Tyk token based on the configuration provided by the profile.
Since this profile does not have a Return URL ("ReturnURL": ""
), the response will be returned as a JSON object with the relevant access token in the response.
{
"ActionType": "GenerateTemporaryAuthToken",
"ID": "8",
"IdentityHandlerConfig": {
"DashboardCredential": "822f2b1c75dc4a4a522944caa757976a",
"DisableOneTokenPerAPI": false,
"TokenAuth": {
"BaseAPIID": "e1d21f942ec746ed416ab97fe1bf07e8"
}
},
"MatchedPolicyID": "5654566b30c55e3904000003",
"OrgID": "53ac07777cbb8c2d53000002",
"ProviderConfig": {
"AccessTokenField": "access_token",
"ExrtactUserNameFromBasicAuthHeader": false,
"OKCode": 200,
"OKRegex": "",
"OKResponse": "",
"ResponseIsJson": true,
"TargetHost": "http://{TARGET-HOSTNAME}:{PORT}/",
"UsernameField": "user_name"
},
"ProviderName": "ProxyProvider",
"ReturnURL": "",
"Type": "passthrough"
}