cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Build App Bug

02-22-2024 5:19 PM
navalega0109 Participant
598 views 0 comments
0 Likes
SAP Managed Tags
Labels
SAP BUILDSAP Build AppsSAP Build CodeJamSAP Build Process AutomationSAP Build Work Zone
Subscribe

Hi Everyone,

I'm testing my application in web browser and it is working fine, able to post the data in database.

But same application if I test in SAP Build Preview App then in that case I'm getting oAuth 2 authorization issue.

I'm calling google firestore database API.

Also after login in web browser I can see all the content getting loaded successfully. But after logging in Mobile Device I'm getting logged in but not data getting displayed.

Refer below screen shot.

REST API

navalega0109_0-1708677532484.png

Data Variable Using : Bearer Token

This app works in web browser but not in SAP Build Preview App.

navalega0109_1-1708677832760.png

Information is given in this page about signing in with oAuth 2 in firebase doc.

But does anyone have idea how to get [Google_Id_Token] then please drop your answer.

curl 'https://identitytoolkit.googleapis.com/v1/accounts:signInWithIdp?key=[API_KEY]' \
-H 'Content-Type: application/json' \
--data-binary '{"postBody":"id_token=[GOOGLE_ID_TOKEN]&providerId=[google.com]","requestUri":"[http://localhost]","returnIdpCredential":true,"returnSecureToken":true}'

Any idea then please let us know.

Regards,

Ganesh N.

0 Likes

Accepted Solutions (0)

Answers (0)