OAuth2 token not refreshing automatically
Moderator: crythias
-
- Znuny newbie
- Posts: 33
- Joined: 22 May 2015, 22:41
- Znuny Version: 6.5.2
- Real Name: Neil Thackeray
- Company: Beckman Institute University of Illinois
OAuth2 token not refreshing automatically
For some reason, the OAuth2 token is not automatically refreshing but will refresh when I request a new token via the command line or by clicking the 'Request new token' button. What mechanism does OTRS use to refresh the tokens? If I have to I will set up a CRON job to refresh the token, but I'd rather it work like it's supposed to.
-
- Administrator
- Posts: 3960
- Joined: 18 Dec 2007, 12:23
- Znuny Version: Znuny and Znuny LTS
- Real Name: Roy Kaldung
- Company: Znuny
- Contact:
Re: OAuth2 token not refreshing automatically
Hi,
Which of the tokens are not refreshed? The access or the refresh token?
- Roy
Which of the tokens are not refreshed? The access or the refresh token?
- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
-
- Znuny newbie
- Posts: 33
- Joined: 22 May 2015, 22:41
- Znuny Version: 6.5.2
- Real Name: Neil Thackeray
- Company: Beckman Institute University of Illinois
Re: OAuth2 token not refreshing automatically
It is the access token. The refresh token doesn't have an expiration date.
-
- Administrator
- Posts: 3960
- Joined: 18 Dec 2007, 12:23
- Znuny Version: Znuny and Znuny LTS
- Real Name: Roy Kaldung
- Company: Znuny
- Contact:
Re: OAuth2 token not refreshing automatically
Hi Neil,
- Roy
The access token always expires if not used, based on the expiration time provided by the vendor. The token is automatically renewed with the refresh token. That's why we recommend disabling the notification for this token: It's not the perfect default setting (it will change) and is unnecessary for O365 or Gmail. I only used it so far with other vendors where I needed OAuth2 for web services.
- Roy
You do not have the required permissions to view the files attached to this post.
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
-
- Znuny newbie
- Posts: 33
- Joined: 22 May 2015, 22:41
- Znuny Version: 6.5.2
- Real Name: Neil Thackeray
- Company: Beckman Institute University of Illinois
Re: OAuth2 token not refreshing automatically
OK, it sounds like the token is refreshed on an as-needed basis instead of when it's time is up. That's fine I just wasn't sure what was going on.