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

Invalid tokenType Enum in DevPortal REST API #9101

Open
GoutamVerma opened this issue Mar 10, 2025 · 0 comments
Open

Invalid tokenType Enum in DevPortal REST API #9101

GoutamVerma opened this issue Mar 10, 2025 · 0 comments

Comments

@GoutamVerma
Copy link

Current Limitation

When invoking the WSO2 API Manager (APIM) DevPortal REST API to retrieve application details using the GET /applications/{applicationId} endpoint, the response always displays the tokenType as "JWT", even when the application's token type is set to the default value.

Additionally, when attempting to update the application using the PUT /applications/{applicationId} endpoint and setting the tokenType to "DEFAULT", the following error is observed:

Cannot deserialize value of type org.wso2.carbon.apimgt.rest.api.store.v1.dto.ApplicationDTO$TokenTypeEnum from String "DEFAULT": not one of the values accepted for Enum class: [JWT, OAUTH]

Suggested Improvement

The tokenType field in the DevPortal REST API only accepts the enum values "OAUTH" and "JWT". The "DEFAULT" value is not supported in API requests, leading to a deserialization error.

By default, if the tokenType is not specified, the API assigns "JWT" as the default value. There is no explicit handling in the codebase for a "DEFAULT" token type. It would be great if the documentation states that only certain formats are accepted values for the tokenType field.

Version

3.2.1

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