Closed sedkis closed 4 years ago
Actually even when I include the org_id I get a "0000" error:
curl -X POST \
http://localhost:8080/tyk/keys/ \
-H 'x-tyk-authorization: 123123' \
-d '{
"last_check": 0,
"certificate": null,
"allowance": 1000,
"hmac_enabled": false,
"hmac_string": "",
"basic_auth_data": {
"password": ""
},
"rate": 1000,
"per": 60,
"throttle_interval": -1,
"throttle_retry_limit": -1,
"expires": 1568658788,
"quota_max": -1,
"quota_renews": 1568655187,
"quota_remaining": -1,
"quota_renewal_rate": -1,
"access_rights":{"0d0d0a2654a649515c6f452c5e13f18c":{"api_id":"0d0d0a2654a649515c6f452c5e13f18c","api_name":"authtoken","versions":["Default"],"allowed_urls":[],"limit":null}},
"apply_policy_id": "",
"apply_policies": [],
"tags": [],
"jwt_data": {
"secret": ""
},
"meta_data": {},
"alias": "",
"org_id" : "5d39d4b6f56e1a815a3a27bf"
}'
Response:
{
"key": "",
"status": "ok",
"action": "added",
"key_hash": "00000000"
}
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs, please add comments to this ticket if you would like it to stay open. Thank you for your contributions.
Branch/Environment/Version 2.8
Describe the bug if I create a key through Gateway using
POST /tyk/keys
that doesn't have anorg_id
in the payload, it will create a Key with "00000" token.Curl:
tyk.conf: