The option token_rotation_expiration_minutes for customizing token rotation behavior does not work with the following example. While only the customization does not work, token rotation itself works with the default setting (2 hours before rotation).
app = App(
signing_secret=signing_secret,
installation_store=DjangoInstallationStore(client_id=client_id),
oauth_settings=OAuthSettings(
client_id=client_id,
client_secret=client_secret,
scopes=scopes,
# If you want to test token rotation, enabling the following line will make it easy
# token_rotation_expiration_minutes=1000000,
state_store=DjangoOAuthStateStore(expiration_seconds=120),
),
)
If you pass installation_store under oauth_settings, your app respects the custom value.
app = App(
signing_secret=signing_secret,
oauth_settings=OAuthSettings(
client_id=client_id,
client_secret=client_secret,
scopes=scopes,
# If you want to test token rotation, enabling the following line will make it easy
# token_rotation_expiration_minutes=1000000,
installation_store=DjangoInstallationStore(client_id=client_id),
state_store=DjangoOAuthStateStore(expiration_seconds=120),
),
)
The option
token_rotation_expiration_minutesfor customizing token rotation behavior does not work with the following example. While only the customization does not work, token rotation itself works with the default setting (2 hours before rotation).If you pass
installation_storeunderoauth_settings, your app respects the custom value.