Cutom object to store data for reference

Hi Colin,

I have raised a post in the community, check for reference.

https://community.sailpoint.com/t5/IdentityNow-Forum/Web-service-Connector-Bearer-Authorization-refresh-token-after/m-p/219631#M10333

I am trying to integrate a System with the WebServices Direct connector. We are authorizing this system using Bearer Token,

  1. We have an endpoint to refresh the token, check the Token1 attachment for a reference. The response will be looks like the below.
    {
    “access_token”: “8oY2aSqKfdlEBvFlylzRGYA”,
    “token_type”: “bearer”,
    “expires_in”: 899
    }

  2. We have an endpoint to fetch the users, this endpoint authorization type is “Bearer Token”, refresh token endpoint repose access_token will pass to users endpoint. Check the attachment user’s endpoint. but the token is valid for 899 seconds only.

  3. I have written before operation rule to generate a new token every time but I want to utilize the first token only within the given period (899) after need to generate a new token. How can I generate a new token once it is expired? How to check if the token is expired or not? based on will generate a new token.

If any one have similar kind problem faced let me know how did we solved. But in IdentityIQ I know like we will store it in custom object like token generation time, access_token and expire_time values and will calculate the time difference in before operaation rule and we can achieve but in IDN how to do we can store and fetch the values.


Thanks
Naveen