Layer7 API Management

 View Only

OTK 4.3 - How to delete a refresh token based on the custom parameter?

  • 1.  OTK 4.3 - How to delete a refresh token based on the custom parameter?

    Posted Mar 24, 2020 11:00 AM
    Hi Community,

    I am trying out grant_type=refresh_token,
    I want a way to delete the old rtoken and generate new pair of access and rtokens using the inputs: 1.rtoken, 2.unique_custom_value
    I have the below setup to extract scope, resource_owner and portal custom values.
    OAuthManager custom_value view:

    custom

    { "otk": {"client_type": "confidential","grant_type": "password"}, "portal": {"Custom":{"unique_custom_value":"uniq1231a"}, "mag": {}, "clientkey": {} }


    How can i delete the old rtoken associated with a unique_custom_value? ( a query probably)
    How can i generate a new pair of access and rtokens with same scope and other properties of the old rtoken?
    Please help!!