Imported Google Group message. Original thread at: Redirecting to Google Groups Import Date: 2016-01-19 21:17:04 +0000.
Sender:S. Alexander Zaman
.
Date:Monday, 29 June 2015 19:25:12 UTC+1.
Hi Martin,
I am so close to getting things running, thanks to your help.
I am currently at the point where I can get a token but I need a way to associate the token that I grabbed from tyk with the user that had to log in and confirm the authorization.
I thought this could probably be done with the webhook and “OAuth Notifications URL” feature, but I am a bit confused with how it works, but when I tried a login, it only returned the following information according to http://posttestserver.com/post.php.
== Begin post body == {“auth_code”:“lp6n-kjeTnqZkXA7kdI91A”,“new_oauth_token”:“wS2WCXlZS7mhtiYl5pybsA”,“refresh_token”:“XIYua6GgT-2xM-8D4YZapQ”,“old_refresh_token”:“”,“notification_type”:“new”}
== End post body == Upload contains PUT data: {“auth_code”:“lp6n-kjeTnqZkXA7kdI91A”,“new_oauth_token”:“wS2WCXlZS7mhtiYl5pybsA”,“refresh_token”:“XIYua6GgT-2xM-8D4YZapQ”,“old_refresh_token”:“”,“notification_type”:“new”}
What do you think would be a good way to connect the end user, who has logged in and permitted the client app to acceess the api, to the newly generated token.
Best,
Alex