SlideShare a Scribd company logo
Implementing Google User Authentication 
In GAE Application 
By tcong@otccomputing.com
lImplementing Authentication on GAE app is easy. 
lhttps://cloud.google.com/appengine/docs/java/config/webxml 
#Security_and_Authentication 
lAdd to web.xml
/profile/* 
/admin/* 
Intercepted 
Google 
Login Page 
Your App 
After success login 
redirect back to your 
app. 
Request to URL:
/profile/* 
/admin/* 
Intercepted 
Google 
Login Page 
Filter 
After success login 
redirect back to your 
app. 
Request to URL: 
Register Page 
Secured content 
User login with google account may not registered to the system. I use Filter to 
redirect new user to register page.
/profile/* 
/admin/* 
Intercepted 
Google 
Login Page 
Filter 
After success login 
redirect back to your 
app. 
Request to URL: 
Register Page 
Secured content 
RBAC 
Error Page 
I implemented Role Based Authentication Check (RBAC), so need to add another box 
for RBAC checking.
lMy Filter in web.xml
lGoogle User Service API 
lSome snippet

More Related Content

PDF
How to integrate a subscription form with WordPress using a free plugin?
PPT
Beginning asp.net application Development with visual studio 2013
PPTX
Google analytics for iOS
PPTX
Einstieg in Office 2013 App Entwicklung
PPTX
How to create Google API project for web applications
PPTX
Login System with Windows/Microsoft Live using OAuth php and mysql
PPTX
How to create Github App for web applications
PPTX
Installing testflight
How to integrate a subscription form with WordPress using a free plugin?
Beginning asp.net application Development with visual studio 2013
Google analytics for iOS
Einstieg in Office 2013 App Entwicklung
How to create Google API project for web applications
Login System with Windows/Microsoft Live using OAuth php and mysql
How to create Github App for web applications
Installing testflight

What's hot (18)

PDF
Magento 2 Auto Related Products
PDF
Connecting your android application to cloud.
DOCX
Google search console affected by indexing bug
PDF
Frappe ERPNext Open Day February 2014
PDF
Magento 2 Google Address Lookup
PPTX
How to Set Up the Cyprexx Integration
PPTX
Linkdialler
PPTX
Accessibility with Single Page Apps
PPTX
Integrating GoogleFit into Android Apps
PDF
International Search Summit 2013 - International Magento SEO
PPTX
Create first-web application-googleappengine
DOCX
Adding google re captch in sharepoint 2013
PPTX
Stripe payment integration with Android app
PDF
Magento 2 Wishlist REST API
TXT
PDF
SEO with WordPress: How to Increase Site Traffic
PPTX
Google app engine setup
PDF
Microsoft Word Facebook And Twitter Advanced Class Links
Magento 2 Auto Related Products
Connecting your android application to cloud.
Google search console affected by indexing bug
Frappe ERPNext Open Day February 2014
Magento 2 Google Address Lookup
How to Set Up the Cyprexx Integration
Linkdialler
Accessibility with Single Page Apps
Integrating GoogleFit into Android Apps
International Search Summit 2013 - International Magento SEO
Create first-web application-googleappengine
Adding google re captch in sharepoint 2013
Stripe payment integration with Android app
Magento 2 Wishlist REST API
SEO with WordPress: How to Increase Site Traffic
Google app engine setup
Microsoft Word Facebook And Twitter Advanced Class Links
Ad

Recently uploaded (20)

PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Encapsulation theory and applications.pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
cuic standard and advanced reporting.pdf
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Electronic commerce courselecture one. Pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Assigned Numbers - 2025 - Bluetooth® Document
Encapsulation theory and applications.pdf
Network Security Unit 5.pdf for BCA BBA.
cuic standard and advanced reporting.pdf
The AUB Centre for AI in Media Proposal.docx
Encapsulation_ Review paper, used for researhc scholars
Electronic commerce courselecture one. Pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
A comparative analysis of optical character recognition models for extracting...
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Per capita expenditure prediction using model stacking based on satellite ima...
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Digital-Transformation-Roadmap-for-Companies.pptx
20250228 LYD VKU AI Blended-Learning.pptx
NewMind AI Weekly Chronicles - August'25-Week II
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Ad

Implementing Google User Authentication In GAE Application

  • 1. Implementing Google User Authentication In GAE Application By tcong@otccomputing.com
  • 2. lImplementing Authentication on GAE app is easy. lhttps://cloud.google.com/appengine/docs/java/config/webxml #Security_and_Authentication lAdd to web.xml
  • 3. /profile/* /admin/* Intercepted Google Login Page Your App After success login redirect back to your app. Request to URL:
  • 4. /profile/* /admin/* Intercepted Google Login Page Filter After success login redirect back to your app. Request to URL: Register Page Secured content User login with google account may not registered to the system. I use Filter to redirect new user to register page.
  • 5. /profile/* /admin/* Intercepted Google Login Page Filter After success login redirect back to your app. Request to URL: Register Page Secured content RBAC Error Page I implemented Role Based Authentication Check (RBAC), so need to add another box for RBAC checking.
  • 6. lMy Filter in web.xml
  • 7. lGoogle User Service API lSome snippet