Authentication with external API partners - passing data between two APIs (initial call and call bac
Options
![Lukasz Kwiatkowski](https://us.v-cdn.net/6037124/user_avatars/2118965.jpg)
Lukasz Kwiatkowski
Member ✭
Hello Guys, I am trying to integrate with a partner that requires 1.0 OAuth which seems to a bit too complex for me.
The flow is more or less as follow: create client specific signature (API 1), authenticate (API 1), receive link for the specific user where they log in through partner web view to authorize my platform, partner call back to my endpoint (API 2) and proceed to receive user token and secret (API2).
Now what is new here for me is that I need to create two separate API calls one is executed by users through xano, second is callback from the partner to xano endpoint. I am using webhook to catch data in the second one, however to identify which user started the first call I somehow need to identify for which user the call back is happening. Currently I am using a cache value with a token as a key. Is it the right way? Is there any other way of doing it that you would recommend?
The flow is more or less as follow: create client specific signature (API 1), authenticate (API 1), receive link for the specific user where they log in through partner web view to authorize my platform, partner call back to my endpoint (API 2) and proceed to receive user token and secret (API2).
Now what is new here for me is that I need to create two separate API calls one is executed by users through xano, second is callback from the partner to xano endpoint. I am using webhook to catch data in the second one, however to identify which user started the first call I somehow need to identify for which user the call back is happening. Currently I am using a cache value with a token as a key. Is it the right way? Is there any other way of doing it that you would recommend?
Comments
-
Hey Lukasz - I would suggest taking a look at our OAuth marketplace extensions to help provide an example and some clarity - we have them with Google, Facebook, Github, and LinkedIn (Marketplace > Authentication)
-
How did you solve this? I have the same challenge https://community.xano.com/c/apis/how-to-hold-temporary-data-between-api-calls-endpoints
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback