API Connect

API Connect

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#API Connect
#Applicationintegration
#APIConnect
 View Only

Editing native OAuth provider assembly to return error when metadata collection service is down

  • 1.  Editing native OAuth provider assembly to return error when metadata collection service is down

    Posted Tue June 06, 2023 03:03 AM
    Hi....
     
    1. I have defined a native OAuth provider in API Connect which invokes an external metadata URL to populate token metadata and return to the API consumer
    2. In normal scenarios, this works fine and I could see that the OAuth access token is embeded with the metadata as expected
    3. In cases when the external metadata URL is down or not accessible, I could still see that OAuth access token is getting generated and returned to API consumer without metadata.
    4. I want this to be customized such that, if external metadata URL is down, the OAuth provider should return a custom error to the API consumer. Please let me know how this can be achieved.


    ------------------------------
    Ashok Beshra
    ------------------------------