PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV Mobile 2024
→
Error with Oauth2 Google Sign-In
Error with Oauth2 Google Sign-In
Started by Parrinello SALVATORE, Oct., 04 2021 6:41 PM - 1 reply
Connect yourself…
Parrinello SALVATORE
#1
Registered member
8 messages
Posted on October, 04 2021 - 6:41 PM
Hi, I have problems with using Google's Oauth2 protocol on Android, using the following code the result returned is always:
invalid_grant Malformed auth code. Tested the same code from the Windev Mobile emulator instead it works perfectly
OAuth2Parameters is an OAuth2Parameters
MyRequest is httpRequest
MyResponse is httpResponse
vProfileInfo is Variant
sGGLDisplayName is string = ""
sGGLEmail is string = ""
bLogin is boolean = False
OAuth2Parameters..AuthURL = "
https://accounts.google.com/o/oauth2/auth
"
OAuth2Parameters..TokenURL = "
https://oauth2.googleapis.com/token
"
OAuth2Parameters..RedirectionURL = "
http://localhost:9874/
"
OAuth2Parameters..Scope = "email profile"
OAuth2Parameters..ClientID = "4XXXXXXXXXX1-lvrjjr936l63pmvsfc696fp4cfq713vh.apps.googleusercontent.com"
AuthToken is an AuthToken = AuthIdentify(OAuth2Parameters)
Report
0
0
Daniel Medina
#2
Posted on December, 16 2021 - 5:12 PM
Hi Salvatore,
There's a patch in order to fix that bug for Windev Mobile 26, you can ask it to free support.
Report
0
0
→ Go back to WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text