Hi, I’m working on a custom node and I’m using OAuth2 Authentication.
I have App A, this is where the OAuth2 Management lies.
Then in App B, we need to authenticate thru App A then exchange App A’s access token into App B’s own access token (different from App A).
My problem is that, in my custom node, how do I authenticate thru App A then exchange that token into App B’s token?
Assuming it is still standard oauth2 it is just Auth and token refreshing that happens on app A all you need to do is tell App B to use the oauth credential from app A. You won’t need to manually send the token as we handle it internally.
If however things are a bit funky you would need to add a preAuthenticate method to your credential or in a generic functions to handle the exchange.