You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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: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
The text was updated successfully, but these errors were encountered: