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.
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"
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.
Please share me your redirect_uri .... my url is not working
I will check append in shared url & checking
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