Closed arjun-udaan closed 4 weeks ago
Hi there,
To take a stab in the dark I expect you've missed a trailing slash:
https://domain.com/authorise/oidc?code=XXXXX
should be https://domain.com/authorise/oidc/?code=XXXXX
Thank you for responding back I did a quick test by adding a trailing / to the redirect URL, but this introduced a new error from Microsoft which kinda make sense
Sorry, but we’re having trouble signing you in.
AADSTS50011: The redirect URI 'https://domain/authorise/oidc' specified in the request does not match the redirect URIs configured for the application 'XXXXX'. Make sure the redirect URI sent in the request matches one added to your application in the Azure portal. Navigate to https://aka.ms/redirectUriMismatchError to learn more about how to fix this.
This error makes sense as the URL in the request does not match the one configured in the Azure portal.
From the WAG logs:
OIDC callback URL: https://domain/authorise/oidc
That looks like you haven't configured the new allowed url redirection in your azure tenancy with the new end slash.
The error was after I have configured the URL redirection in the azure tenant,
the error says "The redirect URI 'https://domain/authorise/oidc' specified in the request does not match the redirect URIs configured for the application 'XXXXX'", as I have set 'https://domain/authorise/oidc/' which does not match.
I fell confused here, as this should have been a very simple process, but it seems I'm stuck for now.
I think this is a configuration issue on your end so Im going to close this issue for now
I’m encountering an issue when setting up OIDC with Azure. After a successful client authorization, the browser redirects to
https://domain.com/authorise/oidc?code=XXXXX
but results in a404 page not found
error.The logs from WAG only show the user registering with OIDC and do not indicate if the process is completed or if there’s an error:
Configuration:
Additional Observations:
logs:
2024/09/17 09:30:44 Started control socket: /tmp/wag.sock **2024/09/17 09:30:44 OIDC callback: https://domain:8080/authorise/oidc** 2024/09/17 09:30:44 Connecting to OIDC provider: https://login.microsoftonline.com/tenant/v2.0 2024/09/17 09:30:44 Connected! 2024/09/17 09:30:44 Started listening: Tunnel Listener: 10.1.2.1:445 Public Listener: :443 2024/09/17 09:30:44 Started Managemnt UI: Listening: 172.31.0.1:4433
Any assistance in resolving this would be greatly appreciated.