Refresh Token not working- HTTP Patch request
Just when I thought I had this token thing down, it isn't working. It worked for one day now I'm getting this error when trying to do the PATCH

I had a token, refreshed it which I thought was good for 365 days?
From the tutorial, it looked like this, so I took the access token on the first line.

Do I need a preserve refresh token?
Also, I added Validate user identity token to authorize the users using the app. Could that through it off because it was already using my refresh token?
Comments
-
@Carol Grant
user identity token is not the same as the auth token or refresh token use for calling SKY API.preserve refresh token shouldn't be use normally, as you want a new refresh token that will have the extended expiration.
your status code error is 404, which means resource not found. Not auth token related.
which patch endpoint are you trying to use, and did you make sure that the record you are trying to patch exists and can be patched?
0 -
@Alex Wong- okay, I did have to fix one thing but now I am getting the expired token error.
"statusCode": 401,
"message": "The required Authorization header was missing or invalid, or the token has expired",
"status": 401,
"title": "The required Authorization header was missing or invalid, or the token has expired"
Let me review my steps again because I have to do this again:
Go to Postman, get original token that is good for 60 minutes. Run the Refresh token flow right before it expires and get a new one.
Here's my refresh flow:
When this runs, it shows below. Is the new token should be the first one “access token”, correct? And that is good for 365 days? I don't think I'm doing this correctly.
0 -
@Carol Grant
yea, you are not doing it correctly.access_token is what you need to use in the bearer header, that is always only good for 60 minutes.
refresh_token is what you need to call the refresh token endpoint to get a new access_token, again the access_token is good for 60 minutes only. The refresh_token is good for 365 days to get new access_token.
Does that make sense?
0 -
@Alex Wong- I understand now and that's a bummer that the access token has to be refreshed every 60 minutes. And now I understand why your previous solution runs every 59 minutes and saves it to a secure area. I guess I'll implement that now.
1
Categories
- All Categories
- 6 Blackbaud Community Help
- High Education Program Advisory Group (HE PAG)
- BBCRM PAG Discussions
- Luminate CRM DC Users Group
- DC Luminate CRM Users Group
- Luminate PAG
- 186 bbcon®
- 1.4K Blackbaud Altru®
- 389 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 14 donorCentrics®
- 355 Blackbaud eTapestry®
- 2.4K Blackbaud Financial Edge NXT®
- 616 Blackbaud Grantmaking™
- 542 Blackbaud Education Management Solutions for Higher Education
- 33 Blackbaud Impact Edge™
- 3.1K Blackbaud Education Management Solutions for K-12 Schools
- 909 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 207 JustGiving® from Blackbaud®
- 6.2K Blackbaud Raiser's Edge NXT®
- 3.5K SKY Developer
- 236 ResearchPoint™
- 116 Blackbaud Tuition Management™
- 375 YourCause® from Blackbaud®
- 160 Organizational Best Practices
- 232 The Tap (Just for Fun)
- 31 Blackbaud Community Challenges
- Blackbaud Consultant’s Community
- 19 PowerUp Challenges
- 3 Raiser's Edge NXT PowerUp Challenge: Gift Management
- 4 Raiser's Edge NXT PowerUp Challenge: Events
- 3 Raiser's Edge NXT PowerUp Challenge: Home Page
- 4 Raiser's Edge NXT PowerUp Challenge: Standard Reports
- 4 Raiser's Edge NXT PowerUp Challenge #1 (Query)
- 71 Blackbaud Community All-Stars Discussions
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 743 Community News
- 2.8K Jobs Board
- Community Help Blogs
- 52 Blackbaud SKY® Reporting Announcements
- Blackbaud Consultant’s Community
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)
- Blackbaud Francophone Group
- Blackbaud Community™ Discussions
- Blackbaud Francophone Group