DataPower

 View Only
Expand all | Collapse all

API for fetching list of Scopes defined in the OAuth provider

  • 1.  API for fetching list of Scopes defined in the OAuth provider

    Posted Mon January 23, 2023 11:30 AM
    I have created an OAuth provider and Scopes that it has access to (Scopes: Add scopes to allow access to). Using datapower script I can fetch the scopes via apim.getvariable("api.document.securityDefinitions"); 

    We are now looking for a service which can consume the API's of IBM and provide this list of scopes in OAuth provider. We checked the API explorer documentation but it's confusing.
    API Explorer

    Can you please help?

    ------------------------------
    Alok Kumar Pandey
    ------------------------------


  • 2.  RE: API for fetching list of Scopes defined in the OAuth provider

    Posted Tue February 14, 2023 11:05 AM

    Hi Alok

    What you are already using apim for, is that to get the security definition of the API that's currently protected ?

    I presume you want to automatically consume the API security requirements for some testing (and not an end user), the API itself has the documentation in it what scope you should use for that API, or do you want to really understand the OAuth provider available scopes 



    ------------------------------
    Tom van Oppens
    ------------------------------