OTK Scopes with Overlaping Parts may get Truncated
book
Article ID: 92791
calendar_today
Updated On:
Products
CA API Gateway
Issue/Introduction
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".
Environment
All supported versions of OTK
Resolution
Scopes should only be separated by a ' ' (space). Anything else is not recommended 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 this avoids any other policy influencing the result.