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 the ‘/’ in the default token content configuration in APIM Microgateway 3.1.0 #3336

Open
cbabey opened this issue Apr 10, 2023 · 0 comments

Comments

@cbabey
Copy link

cbabey commented Apr 10, 2023

Description

Hi Team,

The tokenContext configuration in the default micro-gateway configuration (micro-gw.conf), specified under the [keyManager] tag, needs to be updated to tokenContext = "/oauth2" instead of "oauth2".

[keyManager]
serverUrl = "https://localhost:9443"
tokenContext = "oauth2"

Otherwise, the below-mentioned will be thrown when invoking the token endpoint.

[2023-04-05 10:23:03,530] TRACE {http.tracelog.downstream} - [] READ COMPLETE
error: {ballerina/http}GenericClientError message=malformed URL specified. For input string: "9443oauth2"

While this issue is not a blocker for users as it can be fixed through configuration changes, it would be beneficial to update the default micro-gw.conf file that ships with the product and also updates the relevant documentation[1]. This would help users avoid encountering the same issue in the future and ensure a smoother experience with the product.

[1] https://docs.wso2.com/display/MG310/Configuring+an+External+Key+Manager

Steps to Reproduce

  • Download the MG-3.1.0 and run it with a sample MG project.
  • Invoke the token endpoint https://localhost:9095/token with the default configuration.

Version

3.1.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