02-22-2024 4:19 PM - edited 02-23-2024 9:11 AM
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
Data Variable Using : Bearer Token
This app works in web browser but not in SAP Build Preview App.
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.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.