Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request always directed to production endpoint when using API Key #8483

Closed
tharikaGitHub opened this issue Jun 28, 2020 · 0 comments · Fixed by #9846 or wso2/carbon-apimgt#9686
Closed

Comments

@tharikaGitHub
Copy link
Member

Description:

After configuring an API to use only API Key security, when invoking the API using the sandbox API Key, the request is directed to the production endpoint.

Steps to reproduce:

  1. Create an API in Publisher with API Key application level security under runtime configurations. Note to untick OAuth security. Only API Key should be selected.
  2. Define 2 different endpoints that would return different responses for the Production and the Sandbox endpoints.
  3. Go to Developer Portal and subscribe the API to an application.
  4. Generate Sandbox API Key and invoke the API selecting the SANDBOX environment from the drop down.
  5. The Production endpoint's response is shown even though the Sandbox API key is provided.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment