AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Comunicación / Gestión del protocolo OAuth 2.0
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Retrieves the identity of a user contained in an AuthToken variable.
Remark: This function can be used for an authentication using the OAuth 2.0 protocol on any web service.
Example
OpenIDParams est un OpenIDParamètres
OpenIDParams.URLConfiguration = "https://accounts.google.com/.well-known/openid-configuration"
OpenIDParams.ClientID = "106034950318?????????k59q.apps.googleusercontent.com"
OpenIDParams.ClientSecret = "oBTQL52J??????-76MpiM"
OpenIDParams.URLRedirection = "http://localhost:9846"
 
MonToken est un AuthToken = AuthIdentifie(OpenIDParams)
SI ErreurDétectée ALORS
Erreur(ErreurInfo())
RETOUR
FIN
 
MonIdentité est un OpenIDIdentité = MonToken.OpenIDLitIdentité()
SI MonIdentité.Valide ALORS
Trace(MonIdentité.Email)
Trace(MonIdentité.Nom)
Trace(MonIdentité.Prénom)
FIN
Syntax
<Result> = <Authentication token>.OpenIDReadIdentity()
<Result>: OpenIDIdentity variable
OpenIDIdentity variable containing the information of the authenticated user.
<Authentication token>: AuthToken variable
AuthToken variable corresponding to the token containing the access information for the next requests that require authentication.
Component: wd290ggl.dll
Versión mínima requerida
  • Versión 24
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 21/06/2023

Señalar un error o enviar una sugerencia | Ayuda local