Layer7 API Management

  • 1.  How many times can we use a Refresh token

    Posted Mar 22, 2018 10:39 AM

    Hi Team,

    Do we have any configuration for how many times can we use a refresh token.

    I am using grant type = password. 

    I get a access token and refresh token ,I am using the refresh token to get a new access token .

    I want to block the user if he uses the refresh token for more than 2  times.



  • 2.  Re: How many times can we use a Refresh token

    Broadcom Employee
    Posted Mar 22, 2018 06:27 PM

    Then you may need to customize the token endpoint, maybe this could work -- add a quota assertion under the refresh token branch, using client_id as custom Counter ID.



  • 3.  Re: How many times can we use a Refresh token

    Posted Mar 22, 2018 10:50 PM

    By default is it 1 time?



  • 4.  Re: How many times can we use a Refresh token

    Broadcom Employee
    Posted Mar 22, 2018 11:43 PM

    It depends... by default, each time you refresh token, it returns new access token and new refresh token.

    If you're talking about old refresh token, it only available one time. But from client side, there is no limitation, you can always refresh as soon as the refresh token is not expired.



  • 5.  Re: How many times can we use a Refresh token

    Posted Mar 27, 2018 11:00 PM

    Thanks



  • 6.  Re: How many times can we use a Refresh token

    Posted Mar 28, 2018 11:18 AM

    I see the same refresh token generating all the time only access token is changing.

    Can you please clarify?



  • 7.  Re: How many times can we use a Refresh token
    Best Answer

    Broadcom Employee
    Posted Mar 28, 2018 06:15 PM

    Then you must have otk 4.1 or above, the refresh token reuse is introduced since otk4.1, but still, by default, it's for one time use only.

    Release Notes - CA API Management OAuth Toolkit - 4.1 - CA Technologies Documentation 

     

    You can configure the behavior as per Token Configuration - CA API Management OAuth Toolkit - 4.1 - CA Technologies Documentation