GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEV
,
WEBDEV
e
WINDEV Mobile
Inicio
|
Mensagens recentes
|
Conecte-se...
|
Disconnect
|
Português
Inicio
→
WINDEV Mobile 2024
→
WM22 Android Google App Sign IN or OAuth use of Firebase
WM22 Android Google App Sign IN or OAuth use of Firebase
Iniciado por MEX, jun., 03 2018 12:43 AM - 7 respostas
Conecte-se…
MEX
#1
Publicado em junho, 03 2018 - 12:43 AM
Hello there, there are no concrete examples in how to use Firebase or Google oAuth with windev to be able to have your application sign in using the Google account or Using Windev oAuth with FireBase. there is only a very simple example using facebook, and all the other platforms are undocumented. Anyone has used the Windev Mobile oAuth with Google sign in or with FireBase ? i will appreciate any information from anyone that has done this integration before.
Denunciar
0
0
Rubén Sánchez Peña
#2
Membro registado
795 mensagems
Popularité : +40 (42 votes)
Publicado em junho, 04 2018 - 4:20 PM
Hi. This is not very actual, but maybe you couls try
https://depot.pcsoft.fr/resource.awp…
Rubén
Denunciar
0
0
Rubén Sánchez Peña
#3
Membro registado
795 mensagems
Popularité : +40 (42 votes)
Publicado em junho, 04 2018 - 5:27 PM
https://doc.windev.com/en-US/index.awp…
Rubén
Denunciar
0
0
MEX
#4
Publicado em junho, 04 2018 - 9:15 PM
Thanks Ruben but that code only works on windows, on android that code does not work.
Denunciar
0
0
Rubén Sánchez Peña
#5
Membro registado
795 mensagems
Popularité : +40 (42 votes)
Publicado em junho, 05 2018 - 6:45 AM
Hi. Have you seen the OAuth example of help? Features are available for Android
Rubén
Denunciar
0
0
MEX
#6
Publicado em junho, 06 2018 - 2:37 AM
All the PCSOFT documentation say the mobile framework supports this feature, and the functions and contants are there. but no examples that actually work on mobile whatsoever.... so i dont know
Denunciar
0
0
MEX
#7
Publicado em junho, 06 2018 - 2:45 AM
Yes Ruben i have seen the code bu that code does not work when you deploy the app
Denunciar
0
0
cherifmoez
#8
Publicado em janeiro, 02 2019 - 2:12 PM
Salut
voila mon code sa marche en Android :
MonToken est un AuthToken
MonTokenParam est un OAuth2Paramètres
MonTokenParam..ClientID = "11245xxxxxx54-uil0chpjp7j66ivb5kujlba72vap68iq.apps.googleusercontent.com"
MonTokenParam..ClientSecret = "ddMp-3XxxxxC0gf8nWbBAmDjQ"
MonTokenParam..URLAuth = "
https://accounts.google.com/o/oauth2/auth
"
MonTokenParam..URLToken = "
https://accounts.google.com/o/oauth2/token
"
MonTokenParam..URLRedirection = "
http://localhost:9000/
"
MonTokenParam..Scope = "email"
MonToken = AuthIdentifie(MonTokenParam)
//Info(UTF8VersChaîne(MonToken.RéponseServeur))
//clInfo est un OAuthWebUser
vInfo est un Variant
oRequête est une httpRequête
oRéponse est une httpRéponse
oRequête..URL = "
https://www.googleapis.com/oauth2/v1/userinfo
"
oRequête..AuthToken = MonToken
oRequête..Méthode = httpGet
// Exécute la requête permettant d'obtenir les informations du profil de l'utilisateur connecté
oRéponse <- HTTPEnvoie(oRequête)
SI PAS ErreurDétectée _ET_ PAS oRéponse..CodeEtat >= 400 ALORS
// Décode la réponse JSON contenu dans le message
vInfo = JSONVersVariant(oRéponse..Contenu)
//info(UTF8VersChaîne(oRéponse..Contenu))
// Recopie les données lues
// Attention, les chaînes sont au format ANSI / UTF-8
// Pour les afficher, il est nécessaire d'utiliser AnsiVersUnicode(<chaîne>, alphabetUTF8)
//info(vInfo.name)
// clInfo.ID = vInfo.id
// clInfo.Nom = vInfo.name
// clInfo.NomAffiché = vInfo.given_name
// clInfo.Image = vInfo.picture
// clInfo.Email = vInfo.email
// info(clInfo.Nom)
FolkyTalkLoginwithGoogle(vInfo)
SINON
Info("Error login")
RETOUR
FIN
Denunciar
0
0
→ Voltar para WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versões anteriores)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Tipo de Pesquisa
Apenas tópicos
Todas as mensagens
Período de pesquisa
Qualquer momento
Última hora
Últimas 24 horas
Semana passada
Mês passado
Ano passado
Cancelar
Pré-visualização da sua mensagem
Adicionar imagem
Importar uma imagem de uma URL
Enviar uma imagem a partir do seu disco
Deixe um ficheiro ou clique em "Procurar ..."
ou
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto