Integrating with Google OAUth exercise

This is connected to the exercise "Integrating with Google OAUth Exercise" in the "Integrating with Web Services" course.

 I did everything per instructed in the PDF, but I keep getting the 401 Authorization Error. see image below.

I exported and attached the module .oml file in case you need to see and help me diagnose the problem.

Employees_OAuth.oml

Refer below link

https://www.outsystems.com/forums/discussion/68957/integrating-with-google-oauth-exercise/

Refer below assets for google oauth

https://www.outsystems.com/forge/component-overview/10251/google-authentication-core

I hope this will help you.

Regards,

Shahaji


Not helpful pal, I already saw those articles much earlier. The one you sent is concerning getting the images. My problem is much prior, my app is not even reaching to google let alone get the images.

https://accounts.google.com/o/oauth2/auth?client_id=130411948472-n8fi7ncb28h5t9dpt4eb1bn0ct5g7mfv.apps.googleusercontent.com&redirect_uri=https://shahaji-nangare.outsystemscloud.com/Employees_OAuth/GoogleCallback.aspx&scope=profile email https://www.googleapis.com/auth/user.birthday.read&response_type=code&access_type=offline&approval_prompt=force

Verified above url and its working but showing below error because i am using redirect_uri is my url here

                             Authorization Error

Error 400: redirect_uri_mismatch
You can't sign in to this app because it doesn't comply with Google's OAuth 2.0 policy.

If you're the app developer, register the redirect URI in the Google Cloud Console.

My observation is your below variables not properly assign in site variables.

I found in your application looks like 

ClientId="130411948472-n8fi7ncb28h5t9dpt4eb1bn0ct5g7mfv.apps.googleusercontent.com
"
Scopes="profile 

email 

https://www.googleapis.com/auth/user.birthday.read"

instead of this you will assign below site variables 

ClientId="130411948472-n8fi7ncb28h5t9dpt4eb1bn0ct5g7mfv.apps.googleusercontent.com"

Scopes="profile email https://www.googleapis.com/auth/user.birthday.read"

Regards,

Shahaji


I changed the 'clientid' and 'scopes' site vars per what you suggested, but still getting the "Error 401: invalid_client"

I attached the edited source file here.

Employees_OAuth 1.1.oml

Please share me your redirect_uri .... my url is not working

I will check append in shared url & checking 

Regards,

Shahaji


Application is working with my google account



I think configuration issue on your google account. Application working fine not issue in application

Allow People API


Create Client ID for Web application




Configure Consent Screen






Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.