Is there any way to make Tyk check both Authorization-header (Bearer token) and a specified Cookie?
My API is intended to be consumed both by Mobile Apps and the Web so I will be using Auth-header with JWT token in the mobile app and a Cookie for the web. My upstream service is able to create the accessToken for both usecases but Tyk does not allow my requests to pass through from the web (cookie).
The relevant parts of my API config (Tyk CE):
"auth": {
"use_param": false,
"param_name": "",
"use_cookie": true,
"cookie_name": "access_token",
"auth_header_name": "Authorization",
"use_certificate": false
},
"use_basic_auth": false,
"use_mutual_tls_auth": false,
"client_certificates": [],
"upstream_certificates": {},
"pinned_public_keys": null,
"enable_jwt": true,
"use_standard_auth": false,
"enable_coprocess_auth": false,
"jwt_signing_method": "hmac",
"jwt_source": "{{ JWT_SOURCE }}",
"jwt_identity_base_field": "sub",
"jwt_client_base_field": "",
"jwt_policy_field_name": "policy",
Will this be possible or am I stuck actually having to proxy all my web API-requests in front of tyk to get cookies to work?