SlideShare una empresa de Scribd logo
Google API Oauth2 + Android
#GDGLima #AndroidTourPeru
2 de Abril, 2013 #AndroidLimaDay
Google API Oauth2 + Android
Diego Urbina López
Technologist & Researcher
daulys2@gmail.com
gplus.to/alevandie
@alevandie
Introducción
Today I want explain how to implement this for your android proyect in a sample
demo app, very quick and sure it helps you to research more about that.
Hoy aprenderemos:
● Indicaciones básicas para el desarrollo del App Android implementando el
servicio Google+ API Oauth2 para Autenticación y Autorización del usuario.
● Mecanismo de seguridad y Proceso de Login desde la óptica de un Analista de
Sistemas.
● Demo App Android, 'PlusSampleActivity'
https://github.com/GDGLima/GoogleAPIOauth2Android
#AndroidTourPeru
¿Qué es Google API Oauth2?
#AndroidTourPeru
● Servicio de Autenticación y Autorización en términos
generales.
● Google ofrece sus propios mecanismos de OAuth para sus
usuarios
● Servicio dedicado y orientado a la validación de cuentas
Google.
● Orientado a brindar seguridad e integridad en la data
(Google Account) de cada usuario.
#AndroidTourPeru
#AndroidTourPeru
Proceso del OAuth 2.0
https://developers.google.
com/accounts/docs/OAuth2?hl=es#demo
#AndroidTourPeru
Oauth 2.0 App
Android
#AndroidTourPeru
Medios de Autenticación
OAuth 1.0
(Hace un año)
OAuth 2.0 para
aplicaciones
web
Open ID
¿A partir de qué versión de Android puedo
utilizar?
#AndroidTourPeru
Using OAuth 2.0 for Login
¿Qué debo saber sobre OAuth para
implementarlo?
https://developers.google.
com/accounts/docs/OAuth2Login?hl=es
https://code.google.com/apis/console/
#AndroidTourPeru
1. API Console
a. Enable The Google+ API
● In the Google APIs Console , create an API project for your application.
● In the Services pane, enable the Google+ API and any other APIs that your app requires.
● In the API Access pane, create an OAuth 2.0 client ID by clicking Create an OAuth 2.0 Client ID .
● Type a product name in the dialog box that displays, and click Next.
● Choose Installed application as your Application type and select Android as type.
● In the Package name field, enter your Android's app's package name. The package name used by the
sample app is:
com.google.android.gms.samples.plus
#AndroidTourPeru
● In a terminal, run the the Keytool utility to get the SHA-1 fingerprint of the
certificate.
keytool -exportcert -alias androiddebugkey -keystore
<path-to-debug-or-production-keystore> -list -v
#AndroidTourPeru
● The keytool prompts you to enter a password for the keystore.
The default password for the debug keystore is android.
Keytool then prints the fingerprint to the shell. For example:
Certificate fingerprint:
SHA1: DA:39:A3:EE:5E:6B:4B:0D:32:55:BF:EF:95:60:18:90:AF:
D8:07:09
cd c:Program FilesJavajdk1.6.0_25bin
<Gracias por participar>
http://gdgandroidtour.gdglima.org
gdglima@googlegroups.com
@gdglima
<Preguntas?>
¡Muchas Gracias!
#AndroidTourPeru

Más contenido relacionado

PDF
Construyendo una app Android sobre la nube App Engine
PDF
Tutorial app inventor
PDF
Calculadora Básica en Android
PDF
Adtg como realice el app en android - usmp
PDF
Tutorial eclipse 1
PDF
Introducción al desarrollo de aplicaciones para Android
PDF
Android
PDF
Crear coche controlado por Bluetooth con arduino
Construyendo una app Android sobre la nube App Engine
Tutorial app inventor
Calculadora Básica en Android
Adtg como realice el app en android - usmp
Tutorial eclipse 1
Introducción al desarrollo de aplicaciones para Android
Android
Crear coche controlado por Bluetooth con arduino

La actualidad más candente (17)

PDF
Taller Android - FLISOL Lima Este 2014
PDF
Introducción a Android
PDF
Android studio - Carlos Piñan
PDF
Generalidades-de-Android-Estudio
PDF
Presentación Evenge #hackathonugr
PDF
1.1 android cep jaen 2015 introducción
ODP
Android Pres3
PPTX
Guia medio audiovisual 1
PPTX
Interfaz de app inventor 2
PDF
Lima GTUG - Startup Android Workshop
PPTX
App inventor primeros pasos i
PPSX
Introducción a App Inventor
PPTX
MTI App inventor: Conociendo el Entorno
PDF
Integración sistemasembebidosaplicacionesmóviles
PDF
App inventor
PDF
Adtg open lima android - upc
PDF
Googleglass aplicadas a la capacitación
Taller Android - FLISOL Lima Este 2014
Introducción a Android
Android studio - Carlos Piñan
Generalidades-de-Android-Estudio
Presentación Evenge #hackathonugr
1.1 android cep jaen 2015 introducción
Android Pres3
Guia medio audiovisual 1
Interfaz de app inventor 2
Lima GTUG - Startup Android Workshop
App inventor primeros pasos i
Introducción a App Inventor
MTI App inventor: Conociendo el Entorno
Integración sistemasembebidosaplicacionesmóviles
App inventor
Adtg open lima android - upc
Googleglass aplicadas a la capacitación
Publicidad

Destacado (19)

PPTX
O auth with facebook and google using .net
PPT
Introduction to Google API - Focusky
PDF
Android 5.0 internals and inferiority complex droidcon.de 2015
PPT
White Jr. Calvin - Ignite Slides Presentation
PPT
Семинар в городском округе Красноуфимск
PDF
Introducción al desarrollo con Android
PDF
Html5 interactivo con easel.js
PDF
Desarrollo interactivo con html5
PPTX
Prosthetiki demo presentation
PDF
Desarrollo Multimedia Android
PDF
Afromix Pump Brochure
PDF
Presentación del programa ADTG
PDF
Introducción al desarrollo para móviles en android
PPTX
Digital Resume
PDF
Adobe Air para desarrollo móvil
PPTX
Conventions of dps
PDF
Rise 2014 st requier
PDF
Writing Testable Code
PDF
Taller google Apps Script
O auth with facebook and google using .net
Introduction to Google API - Focusky
Android 5.0 internals and inferiority complex droidcon.de 2015
White Jr. Calvin - Ignite Slides Presentation
Семинар в городском округе Красноуфимск
Introducción al desarrollo con Android
Html5 interactivo con easel.js
Desarrollo interactivo con html5
Prosthetiki demo presentation
Desarrollo Multimedia Android
Afromix Pump Brochure
Presentación del programa ADTG
Introducción al desarrollo para móviles en android
Digital Resume
Adobe Air para desarrollo móvil
Conventions of dps
Rise 2014 st requier
Writing Testable Code
Taller google Apps Script
Publicidad

Más de GDG Lima (20)

PDF
Customs Components Android Eduardo Medina
PDF
Viviendo en el futuro con glass
PDF
Google Maps como modelo de negocio
PDF
Google cloud endpoints
PDF
Gdg santa catarina - experiencia gdg lima
PDF
GDG Lima ¿quienes somos?
PDF
Nuestra primera aplicación Android
PDF
Android para emprendedores
PDF
Android para diseñadores
PDF
Android tour lima - app del evento
PDF
Google api oauth2 + php
PDF
Fuzzy databases fsql
PDF
Android + my sql
PDF
Evaluando json y xml para transmisión de datos en android
PDF
Introducción gdg lima and android developers
PDF
Tecnologías Google
PDF
Presentación gadc2012
PDF
AndEngine 2d para juegos para Android
PDF
Como realice el App en Android
PDF
Tecnología accesible
Customs Components Android Eduardo Medina
Viviendo en el futuro con glass
Google Maps como modelo de negocio
Google cloud endpoints
Gdg santa catarina - experiencia gdg lima
GDG Lima ¿quienes somos?
Nuestra primera aplicación Android
Android para emprendedores
Android para diseñadores
Android tour lima - app del evento
Google api oauth2 + php
Fuzzy databases fsql
Android + my sql
Evaluando json y xml para transmisión de datos en android
Introducción gdg lima and android developers
Tecnologías Google
Presentación gadc2012
AndEngine 2d para juegos para Android
Como realice el App en Android
Tecnología accesible

Último (20)

PPTX
DEBL Presentación PG 23.pptx [Autoguardado].pptx
PPTX
EQUIPOS DE PROTECCION PERSONAL - LEY LABORAL.pptx
PDF
Matriz_Seguimiento_Estu_Consult_2024_ACT.pdf
PDF
Seguridad vial en carreteras mexico 2003.pdf
PDF
SESION 9 seguridad IZAJE DE CARGAS.pdf ingenieria
PDF
Clase 2 de abril Educacion adistancia.pdf
PDF
Diseño y Utiliación del HVAC Aire Acondicionado
PDF
SESION 10 SEGURIDAD EN TRABAJOS CON ELECTRICIDAD.pdf
PDF
silabos de colegio privado para clases tema2
PDF
2. FICHA EMERGTENCIA VIAL PUCABAMBA - PAN DE AZUCAR.pdf
PDF
UD3 -Producción, distribución del aire MA.pdf
PDF
Curso Introductorio de Cristales Liquidos
PDF
Módulo V. Tema 2. Disruptive & Transformation 2024 v.0.4.pdf
PDF
manual-sostenibilidad-vivienda-yo-construyo (1).pdf
PDF
SISTEMAS DE PUESTA A TIERRA: Una introducción a los fundamentos de los sistem...
PDF
MODULO 1 Base Legal Nacional y sus aplicaciones.pdf
PPTX
TECNOLOGIA EN CONSTRUCCION PUBLICO Y PRIVADA
PPTX
CNE-Tx-ZyD_Comite_2020-12-02-Consolidado-Version-Final.pptx
PPTX
376060032-Diapositivas-de-Ingenieria-ESTRUCTURAL.pptx
PPTX
Investigacioncientificaytecnologica.pptx
DEBL Presentación PG 23.pptx [Autoguardado].pptx
EQUIPOS DE PROTECCION PERSONAL - LEY LABORAL.pptx
Matriz_Seguimiento_Estu_Consult_2024_ACT.pdf
Seguridad vial en carreteras mexico 2003.pdf
SESION 9 seguridad IZAJE DE CARGAS.pdf ingenieria
Clase 2 de abril Educacion adistancia.pdf
Diseño y Utiliación del HVAC Aire Acondicionado
SESION 10 SEGURIDAD EN TRABAJOS CON ELECTRICIDAD.pdf
silabos de colegio privado para clases tema2
2. FICHA EMERGTENCIA VIAL PUCABAMBA - PAN DE AZUCAR.pdf
UD3 -Producción, distribución del aire MA.pdf
Curso Introductorio de Cristales Liquidos
Módulo V. Tema 2. Disruptive & Transformation 2024 v.0.4.pdf
manual-sostenibilidad-vivienda-yo-construyo (1).pdf
SISTEMAS DE PUESTA A TIERRA: Una introducción a los fundamentos de los sistem...
MODULO 1 Base Legal Nacional y sus aplicaciones.pdf
TECNOLOGIA EN CONSTRUCCION PUBLICO Y PRIVADA
CNE-Tx-ZyD_Comite_2020-12-02-Consolidado-Version-Final.pptx
376060032-Diapositivas-de-Ingenieria-ESTRUCTURAL.pptx
Investigacioncientificaytecnologica.pptx

Google api oauth2 + android

  • 1. Google API Oauth2 + Android #GDGLima #AndroidTourPeru 2 de Abril, 2013 #AndroidLimaDay
  • 2. Google API Oauth2 + Android Diego Urbina López Technologist & Researcher daulys2@gmail.com gplus.to/alevandie @alevandie
  • 3. Introducción Today I want explain how to implement this for your android proyect in a sample demo app, very quick and sure it helps you to research more about that. Hoy aprenderemos: ● Indicaciones básicas para el desarrollo del App Android implementando el servicio Google+ API Oauth2 para Autenticación y Autorización del usuario. ● Mecanismo de seguridad y Proceso de Login desde la óptica de un Analista de Sistemas. ● Demo App Android, 'PlusSampleActivity' https://github.com/GDGLima/GoogleAPIOauth2Android #AndroidTourPeru
  • 4. ¿Qué es Google API Oauth2? #AndroidTourPeru
  • 5. ● Servicio de Autenticación y Autorización en términos generales. ● Google ofrece sus propios mecanismos de OAuth para sus usuarios ● Servicio dedicado y orientado a la validación de cuentas Google. ● Orientado a brindar seguridad e integridad en la data (Google Account) de cada usuario. #AndroidTourPeru
  • 6. #AndroidTourPeru Proceso del OAuth 2.0 https://developers.google. com/accounts/docs/OAuth2?hl=es#demo
  • 8. Oauth 2.0 App Android #AndroidTourPeru Medios de Autenticación OAuth 1.0 (Hace un año) OAuth 2.0 para aplicaciones web Open ID
  • 9. ¿A partir de qué versión de Android puedo utilizar? #AndroidTourPeru Using OAuth 2.0 for Login ¿Qué debo saber sobre OAuth para implementarlo? https://developers.google. com/accounts/docs/OAuth2Login?hl=es
  • 10. https://code.google.com/apis/console/ #AndroidTourPeru 1. API Console a. Enable The Google+ API ● In the Google APIs Console , create an API project for your application. ● In the Services pane, enable the Google+ API and any other APIs that your app requires. ● In the API Access pane, create an OAuth 2.0 client ID by clicking Create an OAuth 2.0 Client ID . ● Type a product name in the dialog box that displays, and click Next. ● Choose Installed application as your Application type and select Android as type. ● In the Package name field, enter your Android's app's package name. The package name used by the sample app is: com.google.android.gms.samples.plus
  • 11. #AndroidTourPeru ● In a terminal, run the the Keytool utility to get the SHA-1 fingerprint of the certificate. keytool -exportcert -alias androiddebugkey -keystore <path-to-debug-or-production-keystore> -list -v
  • 12. #AndroidTourPeru ● The keytool prompts you to enter a password for the keystore. The default password for the debug keystore is android. Keytool then prints the fingerprint to the shell. For example: Certificate fingerprint: SHA1: DA:39:A3:EE:5E:6B:4B:0D:32:55:BF:EF:95:60:18:90:AF: D8:07:09 cd c:Program FilesJavajdk1.6.0_25bin