Was the AuthToken value created with Tyk Key REST API? I don’t have any issues on my end
When I put the 2 headers, it works fine for me
I have attached my policy and snippets of the body when creating both keys
Policy definition
{
"auth_type": "multiAuth",
"auth_types": [
"ba",
"authToken"
],
"state": "active",
"graphql_enabled": false,
"_id": "63e39307975cce0001ded5ff",
"id": "",
"name": "Sample Standard Token and Basic Multi Authentication",
"org_id": "61fd63e8a35fd4000162ed94",
"rate": 1000,
"per": 60,
"quota_max": -1,
"quota_renewal_rate": -1,
"throttle_interval": -1,
"throttle_retry_limit": -1,
"max_query_depth": -1,
"access_rights": {
"c4c2d14d256344687b201d6bd5b15e55": {
"api_name": "Sample Standard Token and Basic Multi Authentication",
"api_id": "c4c2d14d256344687b201d6bd5b15e55",
"versions": [
"Default"
],
"allowed_urls": [],
"restricted_types": [],
"limit": null,
"field_access_rights": [],
"allowance_scope": ""
}
},
"hmac_enabled": false,
"active": true,
"is_inactive": false,
"tags": [],
"key_expires_in": 0,
"partitions": {
"quota": true,
"rate_limit": true,
"complexity": false,
"acl": true,
"per_api": false
},
"meta_data": {}
}
Key request for basic auth
POST /tyk/keys/[email protected]
{
"access_rights": {},
"alias": "Sample Standard Token and Basic Multi Authentication",
"allowance": 100,
"apply_policies": [
"63e39307975cce0001ded5ff"
],
"apply_policy_id": "",
"basic_auth_data": {
"password": "1234567",
"hash_type": "bcrypt"
},
...
}
Key request for auth token
POST /tyk/keys
{
"access_rights": {},
"alias": "",
"allowance": 100,
"apply_policies": [
"63e39307975cce0001ded5ff"
],
...
}