Open Menuka-Senevirathne opened 2 years ago
Above reported issue was fixed by adding [1]. But it leads to below issue due to confusing use of the system property preserveCaseSensitive. This needs to be fixed.
Scenario: We have a role named WSO2.COM/Test in the userstore. And while creating scopes from the store we have mentioned scope role as,
preserveCaseSensitive=true | preserveCaseSensitive=false | |
---|---|---|
Token Generation | With ScopeOne : Works fineWith ScopeTwo : Blocked(Matches with Expected Behavior) | With ScopeOne : Works fineWith ScopeTwo : Works fine(Matches with Expected Behavior) |
API Invocation | With token generation for ScopeOne: Works fineWith token generation for ScopeTwo: Works fine(Deviates from Expected Behavior) | With token generation for ScopeOne: Works fineWith token generation for ScopeTwo: Blocked (403)(Deviates from Expected Behavior) |
Description:
The scopes can be created without an issue, (ie: no front end validation to check case sensitivity) but once we try to invoke an API with the generated token it fails with a 403 forbidden response.
[2022-03-04 13:53:28,677] WARN - APIAuthenticationHandler API authentication failure due to The access token does not allow you to access the requested resource /sample/v1/
Steps to reproduce:
Affected Product Version:
APIM 2.6.0
Optional Fields
Related Issues:
https://github.com/wso2/product-apim/issues/3273
Suggested Labels:
APIM 2.6.0