Hello there,
Recently we added to our Oauthv2 policy the options of ExpiresIn and RefreshTokenExpiresIn.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<OAuthV2 name="OAuth-v20-Store-External-Token" async="false" continueOnError="false" enabled="true">
<DisplayName>OAuth-v20-Store-External-Token</DisplayName>
<Attributes/>
<ExternalAccessToken>external_access_token</ExternalAccessToken>
<ExternalRefreshToken>external_refresh_token</ExternalRefreshToken>
<ExternalAuthorization>true</ExternalAuthorization>
<Operation>GenerateAccessToken</Operation>
<ReuseRefreshToken>true</ReuseRefreshToken>
<ExpiresIn>1860000</ExpiresIn>
<RefreshTokenExpiresIn>7260000</RefreshTokenExpiresIn>
<StoreToken>true</StoreToken>
<SupportedGrantTypes>
<GrantType>client_credentials</GrantType>
</SupportedGrantTypes>
<GenerateResponse enabled="false"/>
</OAuthV2>
How can we check if those tokens are purged from Cassandra?
Apigee versions: 4.52 / 4.53 (opdk installation)
The message-processor has the following values:
[xxxxx@xxxxxx conf]# grep -rnw '/opt/apigee/edge-message-processor/conf/' -e 'purge'
/opt/apigee/edge-message-processor/conf/keymanagement.properties:25:oauth.access.token.purge.after.seconds=259200
/opt/apigee/edge-message-processor/conf/keymanagement.properties:26:oauth.authorization.code.purge.after.seconds=259200
/opt/apigee/edge-message-processor/conf/keymanagement.properties:27:apikey.purge.after.seconds=-1
Thanks,
Mate.
Solved! Go to Solution.
Hi @mateoporcar
Cassandra's own garbage collection and compaction processes will delete tombstones. You could refer to monitoring/telemetry, logs and perhaps "nodetool compactionhistory" to see when and how often compaction runs.
Related: https://docs.apigee.com/api-platform/reference/policies/oauthv2-policy#purgingaccesstokens
Hey @mateoporcar! Thank you for your question.
We’ll monitor this thread to ensure you receive a helpful response. In the meantime, we invite you to join our office hours tomorrow - Thursday, at 4 PM CET, for a more in-depth discussion. You can register for the session here: Apigee mad_in_api TechTalk & Office Hours. 🙂
Hi @mateoporcar
Cassandra's own garbage collection and compaction processes will delete tombstones. You could refer to monitoring/telemetry, logs and perhaps "nodetool compactionhistory" to see when and how often compaction runs.
Related: https://docs.apigee.com/api-platform/reference/policies/oauthv2-policy#purgingaccesstokens
Thank you @omidt !