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

Getting token failure issue in MGW #3533

Open
chandimajayawickrama opened this issue Jun 4, 2024 · 0 comments
Open

Getting token failure issue in MGW #3533

chandimajayawickrama opened this issue Jun 4, 2024 · 0 comments

Comments

@chandimajayawickrama
Copy link

Description

The token from IBM has changed recently to the following format.

some string.some string.some string

As you can see, the above contains two dots(.) which the MGW's Pre Authentication filter detects the token to be a JWT token but, since the token is not a JWT token, the MGW is throwing errors as below.

ERROR [ballerina/jwt] - String to JSON conversion failed for JWT header. : error {ballerina/io}GenericError message=unrecognized token '**********************************'
DEBUG [wso2/gateway/src/gateway/utils] - [JWTUtil] ['**********************************] Error while decoding the JWT token

Steps to Reproduce

Use an opaque token which has dots

Version

3.2.0

Environment Details (with versions)

No response

Relevant Log Output

No response

Related Issues

No response

Suggested Labels

No response

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

1 participant