Nodejs Sky API Auth Code Example issues
When working through the "sky-api-tutorial-auth-code-nodejs" example code at: https://github.com/blackbaud/sky-api-tutorial-auth-code-nodejs, I can auth but the redirect fails and the user is not authenticated.
The C# example works using the same credentials, so I'm not sure what really is going on here. On the redirect, I get an error: Response Error: Bad Request.

It looks like a GitHub issue was filed for it back in March but I haven't seen any updates since then: https://github.com/blackbaud/sky-api-tutorial-auth-code-nodejs/issues/11
EDIT:
I was able to get the auth flow working by adding the following to config in auth.js:
options: { authorizationMethod: 'body' }

Comments
-
Hey @Lucas Foster, thanks for pointing this out. We'll take a look.
1 -
@Chris Rodgers
I added some additional logging around auth.js and it's showing invalid client:
0 -
@Chris Rodgers
I was able to get the auth flow working by adding the following to config in auth.js:
options: { authorizationMethod: 'body' }
It's not pulling the Constituent details, but it shows I'm authenticated now. I will dive in some more tomorrow.
EDIT: I was able to get the Constituent details pulled after additional review. Some error handling I had added previously broke the API response.
0
Categories
- All Categories
- 6 Blackbaud Community Help
- 209 bbcon®
- 1.4K Blackbaud Altru®
- 394 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™
- 563 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)
