- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
Hi everyone,
I'm developing an app that requires login via google. I followed the tutorial on this page (https://software.intel.com/en-us/html5/articles/oauth2-with-intelxdk-cordova-html5#comment-1809957), but was not able to configure all the parameters correctly. For example I do not understand which value must have parameter Auth_url, or the possible values of scope.
Can you help me?
- Etiquetas:
- HTML5
- Intel® XDK
Enlace copiado
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
Did you try the example at https://github.com/krisrak/jquery-cordova-oauth2 which the "Using Oauth 2.0 login for HTML5 apps" article is based on?
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
hi,
thank for your answer.
Yes, i alredy try the example. I donwloaded the zip file and run it in intel xdk, but when i test the application on device i get this error
and this is the code i set
function oauth2_login() { $.oauth2({ auth_url: 'https://accounts.google.com/o/oauth2/auth', // required response_type: 'token', // required - "code"/"token" client_id: '****.apps.googleusercontent.com', // required redirect_uri: 'http://localhost', // required - some dummy url other_params: {scope:'profile'} // optional params object for scope, state, display... }, function(token, response){ // do something with token or response $("#logs").append("<p class='success'><b>access_token: </b>"+token+"</p>"); $("#logs").append("<p class='success'><b>response: </b>"+JSON.stringify(response)+"</p>"); }, function(error, response){ // do something with error object $("#logs").append("<p class='error'><b>error: </b>"+JSON.stringify(error)+"</p>"); $("#logs").append("<p class='error'><b>response: </b>"+JSON.stringify(response)+"</p>"); }); }
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
Please research this issue on StackOverflow under the Cordova link. The XDK creates standard Cordova apps and StackOverflow and the many blogs regarding Cordova apps are your best resource for resolving this question. We do not providing general programming support in this forum, only product-specific support.

- Suscribirse a un feed RSS
- Marcar tema como nuevo
- Marcar tema como leído
- Flotar este Tema para el usuario actual
- Favorito
- Suscribir
- Página de impresión sencilla