Rodwell
Microsoft unfortunately forces you to use a domain with HTTPS installed for the Redirect URI. If you don’t have this then you must use http://localhost.
The issue for you is the Redirect URI you configured in osTicket does not match what you are using in the browser. The URL you make the call from in the browser must match the Redirect URI in the plugin config and the app registration.
Cheers.