Hello,
I am new to znuny and have been playing around with it to see if it fits our needs. I can't seem to get past one critical thing, OAuth with MS 365 email account.
I have followed the instructions her https://www.znuny.org/en/blog/modern-au ... -microsoft. I know httptype is set to https but the error I get when I click the refresh button to get a token from MS is:
AADSTS50011: The redirect URI 'http://help.betaclub.org/znuny/get-oaut ... on-code.pl' specified in the request does not match the redirect URIs configured for the application XXXXXX.
The configured URI in the MS app settings is https://help.betaclub.org/znuny/get-oau ... on-code.pl. MS will not allow a URI that is not secure (http vs https). I have uninstalled znuny twice and started over. I don't understand why znuny is passing http://... instead of https as the redirect uri. Any thoughts? Again, in the system config, I have httptype set to https. Oh version is znuny 7.1.2
Thank for any help,
Jay
OAuth RedirectURI
Moderator: crythias
-
- Znuny newbie
- Posts: 2
- Joined: 16 Aug 2024, 15:23
- Znuny Version: 7.1
- Real Name: Jay Moore
- Company: National Beta Club
Re: OAuth RedirectURI
UPDATE:
So, after changing and verifying httptype value was https several times and after installing from scratch twice, I found this little nugget
bin/otrs.Console.pl Admin::Config::Update --setting-name HttpType --value https
on this page : https://doc.znuny.org/znuny_lts/admin/a ... gistration
After running that it worked. Which I don't understand, it would seem changing httptype in the system config interface would do the same thing? UNLESS you don't understand you have to DEPLOY the changes you made in the system config..... Learning still.
Jay
So, after changing and verifying httptype value was https several times and after installing from scratch twice, I found this little nugget
bin/otrs.Console.pl Admin::Config::Update --setting-name HttpType --value https
on this page : https://doc.znuny.org/znuny_lts/admin/a ... gistration
After running that it worked. Which I don't understand, it would seem changing httptype in the system config interface would do the same thing? UNLESS you don't understand you have to DEPLOY the changes you made in the system config..... Learning still.
Jay
-
- Znuny superhero
- Posts: 914
- Joined: 15 Dec 2016, 15:13
- Znuny Version: All
- Real Name: Emin
- Company: Efflux GmbH
- Contact:
Re: OAuth RedirectURI
Hello Jay,
Yes, you always have to deploy the changes you made in the system configuration. The console command you executed is auto-deploying the config; that's why it resolved your problem.
Best
— Emin
Yes, you always have to deploy the changes you made in the system configuration. The console command you executed is auto-deploying the config; that's why it resolved your problem.
Best
— Emin
Professional Znuny and OTRS services: efflux.de | efflux.de/en/
Free and premium add-ons: German | English
Free and premium add-ons: German | English