Forum Discussion

pcoleman's avatar
pcoleman
New Contributor III
2 years ago
Solved

OAuth2 Return Values to transform data

Hi...We have a problem with OAuth2 authorization to Raiser's Edge.

I can use the Account and get a token back...The problem is that their API expects us to pass that token in the HTTP Headers as a Bearer token.

This is non standard and it appears that when we use the Account construct the API isn't getting the message that it's properly authorized.

I've come up with a hack for this...using HTTP Client...I make a bad call to their API and then use the debug data from that error view, I can scrape out the access_token and do what I want with it.

This is obviously a pretty hacky solution and it relies on me creating debug info via a bad call. I'd like to know if there's any way to reference the OAuth2 call results in the HTTP Client or REST Snaps without taking this route.