Refactor prepareIntrospectionResponse
to use ensureType to avoid panic behaviour
#7231
Labels
prepareIntrospectionResponse
to use ensureType to avoid panic behaviour
#7231
Description:
In the current implementation of the oauth2, the
prepareIntrospectionResponse
method panics in multiple places. This is primarily caused by the use of explicit casting (Diamond Operator). However, using diamond operator is not recommended as it leads to unexpected failures.Expected Behavior:
Solution:
prepareIntrospectionResponse
method to useensureType
.OS, DB, other environment details and versions:
Related Issues (optional):
Suggested Labels (optional):
Suggested Assignees (optional):
The text was updated successfully, but these errors were encountered: