Questions tagged [tyk]

Tyk is a lightweight, open source API Gateway and API Management Platform written in Go.

Tyk is a lightweight, open source API Gateway and API Management Platform written in Go.

The API Management Platform allows you to control who accesses your API, when they access it and how they access it. Tyk will also record detailed analytics on how your users are interacting with your API and when things go wrong.

The Tyk API Gateway is open source and released under the MPL v2.0 License.

It’s available to deploy on-premises, cloud or hybrid.

Further information and documentation can be found on the Tyk website.

47 questions
1
vote
1 answer

Multiple RESTful API-s in one Swagger for Tyk

I have 2 different restful api-s, and I would like to use Tyk for gateway. My plan is to have a common url (like: http://viktorservices) which can towards messages to those two api endpoints. For example, the first api is a user manager api, and has…
victorio
  • 6,224
  • 24
  • 77
  • 113
1
vote
1 answer

Tyk Ouath2 flow client_credentials ERROR: Couldn't use policy or key rules to create token, failing

I'm using Tyk 2.2.0 as an api management oauth2, basic, I need to add the client_credentials oauth2 flow as an allowed_access_types. I made the following changes in order to generate an access token via this new oauth2 access type: Create a Tyk…
Moussi
  • 470
  • 6
  • 16
1
vote
1 answer

Tyk gateway with Nginx and Apache Tomcat 8 (ubuntu 14.04)

Just wondering what I am missing here when trying to create an API with Tyk Dashboard. My setup is: Nginx > Apache Tomcat 8 > Java Web Application > (database) Nginx is already working, redirecting calls to apache tomcat at default port…
aelkz
  • 1,786
  • 1
  • 24
  • 26
1
vote
1 answer

Can the tyk.io Dashboard be customized with a different authentication method?

We are using version 2.0 of tyk.io, and we wanted to know if there is a way to customize the tyk.io dashboard ui to use a custom authentication method such as Oauth2?
user2932053
1
vote
2 answers

Tyk Plugin Python

I would like to use my own Auth service on every request. I found that by creating plugin is the best way to do it. I am just curious, How can I return an error directly after pre function ? For example: User access api Plugin check the token that…
Adityo Setyonugroho
  • 877
  • 1
  • 11
  • 29
1
vote
1 answer

Network Error on Internet Explorer 11 when POSTing XML with CORS

I'm trying to send a POST request to an API which requires XML in the request body and responses with XML data. The API is on another domain, so CORS has to be used. IE11 sends a successful CORS preflight. Here is a simplified test case which fails…
fotcorn
  • 311
  • 3
  • 8
1
vote
1 answer

How to setup redis-server 3.0.7 for Tyk 1.9.1 on Ubuntu 14.04.3 LTS

I get the following error when trying to start my redis instance using tyk: ERRO[0000] Could not EXPIRE key: could not complete command ERRO[0005] Multi command failed: could not complete command I did set the following parameters : port 6379 -…
0
votes
0 answers

How to parse custom JTW claims in TYK Gateway config?

I want to add new headers: x-application-id x-application-name x-organisation-id x-organisation-name if I do like this "$tyk_context.jwt_claims_client_metadata.organisation_name" it does not work. in the logs I see: “x-organisation-name-” Question:…
AlexMcowkin
  • 41
  • 1
  • 3
0
votes
1 answer

Policies/API sync between Tyk dev portal and dashboard not working

I have a Tyk dashboard and developer portal running in separate Docker containers on the same docker network. I use the following docker-compose.yaml file: version: '3.6' services: tyk-portal: depends_on: - tyk-portal-mysql image:…
Patrick
  • 1,728
  • 2
  • 17
  • 30
0
votes
1 answer

Is it possible to display the value of an environment variable in a Tyk Dashboard template file?

I'm trying to reference an environment variable in Tyk Dashboard. I set up a docker-compose.yaml file containing environment variables: version: '3.6' services: tyk-portal: image: tykio/portal:v1.3.0 command: --bootstrap ports: -…
Patrick
  • 1,728
  • 2
  • 17
  • 30
0
votes
1 answer

TYK Gateway - transform query parameters from camelCase to snake_case

how to transform query parameters from camelCase to snake_case in TYK Gateway? For example, https://gateway.com?firstName=John&lastName=Doe to https://upstream.com?first_name=John&last_name=Doe
username_jj
  • 245
  • 1
  • 10
0
votes
3 answers

API Gateway (Kong or Tyk):. Can I have swagger-ui on gateway?

I am in the process of implementing an API Gateway as a point of access to several existing APIs that run as microservices. Each microservice API is defined in OpenAPI and runs an instance of swagger-ui to document and expose endpoints. Everything…
user1022788
  • 419
  • 8
  • 18
0
votes
1 answer

Tyk - request body is forwarded without being transformed

I am new to api gateways and I wanted to try to use Tyk product I installed the docker version and created an api using the documentation I tried to do a transformation using templates but the request was forwarded without any transformation here is…
0
votes
1 answer

Getting Empty Replay from server while uploading huge tar file via tyk gateway

Hi I am trying to upload a 2G file via tyk-gateway with v3.2.2, by curl and I found the file is being uploaded successfully but the response from the server is seen in the packet capture but the tyk is responding back with an Empty reply from the…
vicky
  • 109
  • 2
  • 17
0
votes
1 answer

Webhook for Portal event - Keyrequest

Want to use keycloak to authenticate and generate a key when a dev logins into the portal and requests for a key. The https://tyk.io/docs/tyk-developer-portal/tyk-portal-classic/portal-events-notifications/ documentation talks about Portal event…