cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1636
Views
10
Helpful
4
Replies

Get access token with no human interaction

Raffaele Lagana
Cisco Employee
Cisco Employee

Hello
We have a backend who needs to login. So that means that there is no Human who is logging in. How can we get the access token?

We also need to be able to change the settings a user as an admin. Ex. General Tab Calling Behavior. Is that possible with the official API? If yes how?

1 Accepted Solution

Raffaele Lagana
Cisco Employee
Cisco Employee

Hello,

 

1. You can create an Integration which will then allow you to create an OAuth Access token. There is a mandatory requirement to have a user authenticate the OAuth manually on first attempt. But once the token is created you can then refresh it on or before it expirer, which will then create a new token. You can store this in your application and update the variable every time you refresh it, meaning that you wouldn't need any human interaction other than the first authentication.

2. The https://developer.webex.com/docs/api/v1/webex-calling-person-settings/configure-a-person's-uc-profile API will allow you to modify  UC Manager Profile settings of the person. it will in future allow to change calling behaviour but this isn't implemented yet.

View solution in original post

4 Replies 4

Raffaele Lagana
Cisco Employee
Cisco Employee

Hello,

 

1. You can create an Integration which will then allow you to create an OAuth Access token. There is a mandatory requirement to have a user authenticate the OAuth manually on first attempt. But once the token is created you can then refresh it on or before it expirer, which will then create a new token. You can store this in your application and update the variable every time you refresh it, meaning that you wouldn't need any human interaction other than the first authentication.

2. The https://developer.webex.com/docs/api/v1/webex-calling-person-settings/configure-a-person's-uc-profile API will allow you to modify  UC Manager Profile settings of the person. it will in future allow to change calling behaviour but this isn't implemented yet.

Hello,

It is mentioned in this document (https://developer.webex.com/docs/authentication#getting-an-access-token) that Access Token is good for 14 days and a Refresh Token expires in 90 days. According to your solution, can the access tokens be kept on creating for life time ?

If I generate a access token for the very first time with human authentication, the access token will be having 14 days of validity, and then refresh token will be having 90 days of validity. I will keep on generating the new access token upto 90 days using refresh token. Once refresh token expires, how can we get new access token. Again human intervention is required to get the authorize code. I need to have to token for lifetime. How can we achieve this without human intervention ?

Any help on this would be highly appreciated. 

Thank you.

I have a refresh token that I have been using for nearly a year now, I can keep reusing it and it creates a new access token with no issues. Now, It's not really possible to give exact timeline, but I know that it works for at least a year. In any case, we're not aware of any limit, as long as it doesn't expire (not used for 90 days or longer), you can keep using the refresh token.