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

Api Manager 4.1.0 WWW-Authenticate header value : null Basic Auth #2046

Closed
vidurananayakkara opened this issue Jul 30, 2023 · 1 comment
Closed

Comments

@vidurananayakkara
Copy link

Description

Hi,
When a request with no authentication header is sent to the gateway the WWW-Authenticate header value contains a “null” value. I tested the same in 4.0.0 version and 3.2.0 and this “null” is not returned, check some samples below:
WWW-Authenticate header value

Api Manager 3.2.0

  • Basic -> Basic Auth realm="WSO2 API Manager", error="invalid_token", error_description="The access token expired"
    Api Manager 4.0.0:
  • Basic -> Internal API Key realm="WSO2 API Manager", Basic Auth realm="WSO2 API Manager", error="invalid_token", error_description="The provided token is invalid"
  • Oauth + Basic -> Internal API Key realm="WSO2 API Manager", Bearer realm="WSO2 API Manager", Basic Auth realm="WSO2 API Manager", error="invalid_token", error_description="The provided token is invalid"
    Api Manager 4.1.0:
  • Basic -> null Basic Auth realm="WSO2 API Manager", error="invalid_token", error_description="The provided token is invalid"
  • Oauth + Basic -> null Bearer realm="WSO2 API Manager" Basic Auth realm="WSO2 API Manager", error="invalid_token", error_description="The provided token is invalid"

As per my understanding the null should be removed

Steps to Reproduce

N/A

Affected Component

APIM

Version

4.1.0

Environment Details (with versions)

No response

Relevant Log Output

No response

Related Issues

No response

Suggested Labels

patch

@msm1992
Copy link

msm1992 commented Aug 7, 2023

Public PR : wso2/carbon-apimgt#11251

@msm1992 msm1992 closed this as completed Aug 7, 2023
@GihanAyesh GihanAyesh added 4.3.0 4.3.0-M1 4.3.0 M1 Milestone labels Jan 16, 2024
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

3 participants