Google Sign-In via OIDC Works on Sandbox But Fails on Localhost (403 Forbidden)
0
I'm trying to integrate Google Sign-In with the OIDC SSO module on Mendix 9.7.0. I've set it up in my sandbox environment and it works fine, but when I run the app locally on localhost:8081, I get a 403 error with the message "You are not allowed to access this resource." Specifically, I've checked: Redirect URIs in Google Cloud Console Client ID and Secret consistency between local and sandbox environments OIDCConfiguration entity pointing to the correct issuer (https://accounts.google.com) and correct Client ID, Secret, and Redirect URI App running on http://localhost:8081/oauth/v2/callback Has anyone else successfully implemented Google OIDC login on localhost? Are there any known issues or configurations that might be causing this error? I'd appreciate any insights or working configurations.
asked
Vaishnavi Yadav
2 answers
1
Hi Vaishnavi Yadav,
Kindly verify the Anonymous user setting.
answered
Gokul I
0
Hi Gokul,
I check the anonymous settings. Those are correct.
The main issue is Google Sign-In functionality is working properly for the sandbox link but not for the localhost and gives
{"error":{"code":403,"message":"You are not allowed to access this resource."}}