OAuth notification

How can I make a relation between a token and a client_id?

After a user will call http://my-tyk-instance.com:8080/product-api/oauth/token/ and use the grant_type password, I will receive a notification with the following data:

{
“auth_code”:“”,
“new_oauth_token”:“22d42e2ac49a49dc7327bee7dfab7435”,
“refresh_token”:“MGVlZTk2Y2YtMzk1Yy00YmM4LTY5ZjYtNjUyMzkwOTMyMjFh”,
“old_refresh_token”:“Nzc4Y2E5YjUtYjgwNS00N2FkLTY3YjItOGQwNDMzZTg2NmZi”,
“notification_type”:“refresh”
}

So how do I know the relation between a token and a client_id ?

Good question :slight_smile: I think you’ll need to make this link when you generate the access code, if you are getting a refresh notification, you will have to track it back.

You’re right though - it would be useful to have the client_id.