OTK Scopes with Overlaping Parts may get Truncated

Document ID : KB000092791
Last Modified Date : 17/07/2018
Show Technical Document Details
Issue:
When you have a list of OTK scopes separated by a period, with parts that overlap, it may get truncated. Example below:

(ex: myapi, myapi.read)

myapi.read in the above case gets truncated to ".read".
Resolution:
So, really scopes should only be separated by a ' ' (space). Everything else we don't really recommend. But the below should help

- Create a test API
- Use ‘OTK SCOPE Issuing’ only
- Configure it with your test values
- Use a ‘Return template assertion’ to return ‘scope.granted’
- Call the API

Do the same with ‘OTK SCOPE Verification’. Doing that avoids any other policy influencing the result.