Refresh Token - App Authentication
Hello,
If we use a refresh token that lasts for 365 days to authenticate our app, and we request a new one, will the previous refresh token instantly be invalidated? Or will it stay valid until the 365th day is reached? I'm trying to establish a process for switching authentication tokens. Thanks.
Comments
-
@Lauren White
It depends on how you want it. When POST to the token endpoint, you can specific if you want to preserve the “existing” refresh token you have.
https://developer.blackbaud.com/skyapi/docs/authorization/auth-code-flow/confidential-application/tutorial#refresh-access-token 0 -
@Alex Wong
Yes, I've done that but we need to rotate the token. If I get a new one and ensure that it lasts for a year, will the old one (aka the one my app is using in production right now) instantly be invalidated?0 -
The moment you refresh your token set and use do not preserve your refresh token, you will get a new refresh token with a new expiration. The refresh token you used to get the new token/refresh token set is no longer valid. I just tried this, and you will get this error:
{
"error": "invalid_grant",
"error_description": "The refresh token was not valid."
}
However, you can have multiple token/refresh token sets that are valid.
2 -
@Alex Wong
ah that's what I suspected happens. Thanks. We keep one refresh token for our app to use for many months at a time, but want to rotate it before it expires at the year mark.
Can you explain to me what you mean about having multiple token/refresh token sets that are valid? That sounds interesting.0 -
@Lauren White
Which ever way you get the first set of token (i.e. PostMan), do the same to get another set of token/refresh token pair. This new pair of token set is “distinct” from your others. When other set of token/refresh token is refreshed, it is not going to affect/invalidate all other sets of token.0
Categories
- All Categories
- 6 Blackbaud Community Help
- 209 bbcon®
- 1.4K Blackbaud Altru®
- 395 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 15 donorCentrics®
- 359 Blackbaud eTapestry®
- 2.5K Blackbaud Financial Edge NXT®
- 646 Blackbaud Grantmaking™
- 564 Blackbaud Education Management Solutions for Higher Education
- 3.2K Blackbaud Education Management Solutions for K-12 Schools
- 934 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 84 JustGiving® from Blackbaud®
- 6.4K Blackbaud Raiser's Edge NXT®
- 3.7K SKY Developer
- 243 ResearchPoint™
- 118 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 238 The Tap (Just for Fun)
- 33 Blackbaud Community Challenges
- 28 PowerUp Challenges
- 3 (Open) Raiser's Edge NXT PowerUp Challenge: Product Update Briefing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports+
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Email Marketing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Gift Management
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Event Management
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Home Page
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Query
- 779 Community News
- 2.9K Jobs Board
- 53 Blackbaud SKY® Reporting Announcements
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)
