OAuth Token Refresh failing

Moderator: crythias

Post Reply
tk421
Znuny newbie
Posts: 1
Joined: 28 Apr 2023, 16:55
Znuny Version: 6.0.39
Real Name: Mike

OAuth Token Refresh failing

Post by tk421 »

Hello,

I'm having some trouble getting the OAuth token to refresh.

Manual token request works fine. 'Token Status' shows valid (for 90 minutes). 'Refresh Token Status' shows "Valid with no expiration date"
However once the token expires I'm seeing this error in the logs where the token refresh fails.


Failed to request token by refresh token for OAuth2 token configuration with ID 1.
Failed to get response for token request by authorization code for OAuth2 token configuration with ID 1.
Can't perform POST on https://login.microsoftonline.com/organ ... v2.0/token: 501 Protocol scheme 'https' is not supported (LWP::Protocol::https not installed)


Ran cpan -l to check for installed Perl modules and https shows:
LWP::Protocol::https 6.04

Ran a check for the modules in OTRS and I don't see it installed.
The following modules are giving a notice however:
IO::Socket::SSL..................ok (v1.997)
Please consider updating to version 2.066 or higher
o Authen::SASL...................Not installed!
(optional - Required for MD5 authentication mechanisms in IMAP connections.)
o Authen::NTLM...................Not installed!(optional - Required for NTLM authentication mechanism in IMAP connections.)


Is it really an issue with the https module or should I focus on these?


System:
openSUSE 13.2
OTRS 6.0.39
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: OAuth Token Refresh failing

Post by root »

Hi Mike,

I'm sorry, but there is not OAuth implementation with Znuny 6.0.39. Are you sure about the product you use?

- 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 ?
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: OAuth Token Refresh failing

Post by jojo »

There is also no OTRS 6.0.39...
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Post Reply