ScriptAlias: otrs/
FQDN: tt-test.domain.com
HttpType: https
App created in Azure, Redirect URL set to https://tt-test.domain.com/otrs/get-oau ... on-code.pl
YAML downloaded and replaced "organizations" with our tenant UUID in token & authorize URLs and reuploaded in Znuny.
When trying to get a new token in the OAuth2 secion in the admin interface it fails with "invalid_client", e.g.
Code: Select all
Backend ERROR: OTRS-CGI-20 Perl: 5.28.1 OS: linux Time: Tue Aug 30 11:36:37 2022
Message: Error requesting token for token config ID 8 with authorization code '<long token here>': invalid_client.
RemoteAddress: A.B.C.D
RequestURI: /otrs/get-oauth2-token-by-authorization-code.pl?code=<long token here>&state=TokenConfigID8&session_state=<random UUID here>
Code: Select all
otrs@tt-test:~$ ./bin/otrs.Console.pl Maint::PostMaster::MailAccountFetch --debug
POP3S: Connection to outlook.office365.com closed.
Net::POP3::_SSL=GLOB(0x55cc11dea3f8)<<< +OK The Microsoft Exchange POP3 service is ready. [RgBSADAAUAAyADgAMQBDAEEAMAAxADAAOAAuAEQARQBVAFAAMgA4ADEALgBQAFIATwBEAC4ATwBVAFQATABPAE8ASwAuAEMATwBNAA==]
Net::POP3::_SSL=GLOB(0x55cc11dea3f8)>>> AUTH XOAUTH2
Net::POP3::_SSL=GLOB(0x55cc11dea3f8)<<< +
Net::POP3::_SSL=GLOB(0x55cc11dea3f8)>>> <long token here>
Net::POP3::_SSL=GLOB(0x55cc11dea3f8)<<< +OK User successfully authenticated.
Net::POP3::_SSL=GLOB(0x55cc11dea3f8)>>> STAT
Net::POP3::_SSL=GLOB(0x55cc11dea3f8)<<< +OK 0 0
Net::POP3::_SSL=GLOB(0x55cc11dea3f8)>>> LIST
Net::POP3::_SSL=GLOB(0x55cc11dea3f8)<<< +OK 0 0
Net::POP3::_SSL=GLOB(0x55cc11dea3f8)>>> QUIT
Net::POP3::_SSL=GLOB(0x55cc11dea3f8)<<< +OK Microsoft Exchange Server POP3 server signing off.
Done.
Any help or hints appreciated!