Microsoft OAuth2 - Redirect URI (reply URL) problem

Jack Chuong 331 Reputation points
2022-10-17T02:06:17.523+00:00

Hi all,
I'm trying to config Microsoft Authorization for my osTicket v1.17 service, I get this error at my last step configuration
250877-capture.png

250878-capture2.png

The problem is our helpdesk.mydomain.com is an internal service, I didn't public url helpdesk.mydomain.com
Does it require that osTicket service need to be public as "Callback Endpoint" "http://helpdesk.mydomain.com/api/auth/oauth2" can be accessed from internet so Microsoft can verify at last step ?
The url service need to be public for permanently ?
Or just temporary (at last validation step) and then I can make it "internal service" again ?

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,429 questions
0 comments No comments
{count} votes

Accepted answer
  1. Vasil Michev 95,081 Reputation points MVP
    2022-10-17T06:17:11.573+00:00

    No, it doesn't need to be public, but it still needs to be listed as a value under the app configuration (also note values are case-sensitive). In fact, you can even use values such as http://localhost/blabla therein, and as long as the request includes a value matching what's configured on the app side, it will work. For a production app however, you should be using the HTTPS scheme instead.

    1 person found this answer helpful.

3 additional answers

Sort by: Most helpful
  1. Jack Chuong 331 Reputation points
    2022-10-17T08:02:03.717+00:00

    I enable https for my helpdesk service, change url to "https://helpdesk.mydomain.com/api/auth/oauth2" , I get new error
    250926-capture3.png

    0 comments No comments

  2. Jack Chuong 331 Reputation points
    2022-10-17T08:34:44.717+00:00

    I removed application and recreate again , now I get error "404 url not found" at last step, it seems that I have to public my helpdesk service as "https://helpdesk.mydomain.com" ?

    0 comments No comments

  3. Jack Chuong 331 Reputation points
    2022-10-17T09:50:15.087+00:00

    I enable url rewrite for my osticket service (Apache) and it works now, thank you very much