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

Missing Auth headers while the API invocation without auth headers #3382

Closed
nelkon opened this issue Nov 25, 2024 · 1 comment
Closed

Missing Auth headers while the API invocation without auth headers #3382

nelkon opened this issue Nov 25, 2024 · 1 comment

Comments

@nelkon
Copy link

nelkon commented Nov 25, 2024

Description

Authentication headers are missing after re-disabling and re-enabling security.

{"code":"900902","message":"Missing Credentials","description":"Invalid Credentials. Make sure your API invocation call has a header: 'null : Bearer ACCESS_TOKEN' or 'null : Basic ACCESS_TOKEN' or 'apikey: API_KEY'"}

Steps to Reproduce

  • Create an API by disabling the security in resources(just keep only one API resource).

pic1

  • Disable(untick) all the application security and deploy the API.
    2

  • Then re enable the security in the resource page, deploy and retry the API invocation( curl -X 'GET' \ 'https://localhost:8243/perftest/1.0' \ -H 'accept: /' \ -k).

pic3

As we checked the API definition the following header has been removed, and it causes this behavior.
x-wso2-auth-header: Authorization

Affected Component

APIM

Version

183

Environment Details (with versions)

No response

Relevant Log Output

{"code":"900902","message":"Missing Credentials","description":"Invalid Credentials. Make sure your API invocation call has a header: 'null : Bearer ACCESS_TOKEN' or 'null : Basic ACCESS_TOKEN' or 'apikey: API_KEY'"}

Related Issues

No response

Suggested Labels

APIM

@hisanhunais
Copy link

Fixed via wso2/apim-apps#683

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants