SlideShare a Scribd company logo
1 of 22
Download to read offline
Omniauth
Future Proof Your Authentication
Roadmap

What's Authentication?

Traditional Approach

The Problem

The Solution: Omniauth
What's Authentication?
What's Authentication?

Confirmation of Identity & Privileges
What's Authentication?

Confirmation of Identity & Privileges
What's Authentication?

Confirmation of Identity & Privileges
What's Authentication?

Confirmation of Identity & Privileges
Traditional Approach

Combine Identity & Authentication
Traditional Approach

   Combine Identity & Authentication

create_table(:users) do |t|
 t.string :username
 t.string :encrypted_password
end
The Problem
The Problem
The Problem


alter_table :users do |t|
 t.integer :facebook_uid, :Iimit => 8
 t.string :facebook_auth_token
end
The Problem


alter_table :users do |t|
 t.integer :facebook_uid, :Iimit => 8
 t.string :facebook_auth_token
end
The Problem


alter_table :users do |t|
 t.integer :facebook_uid, :Iimit => 8
 t.string :facebook_auth_token
end
The Problem


alter_table :users do |t|
 t.integer :facebook_uid, :Iimit => 8
 t.string :facebook_auth_token
end
The Problem


alter_table :users do |t|
 t.integer :facebook_uid, :Iimit => 8
 t.string :facebook_auth_token
end
The Problem
The Solution: Omniauth

Separate Identity from Authentication
The Solution: Omniauth

 Separate Identity from Authentication

create_table(:authentications) do |t|
 t.integer :user_id
 t.string :provider
 t.string :uid
 t.string :token
end
The Solution: Omniauth
More Info
Learn
  http://railscasts.com/episodes/235-omniauth-part-1
  http://railscasts.com/episodes/236-omniauth-part-2

Do
  https://github.com/intridea/omniauth
Thanks!


        Kevin Ball
         @kbal11
kball@fashioningchange.com

More Related Content

Similar to Omniauth: Future Proof Your Authentication

Development of Twitter Application #5 - Users
Development of Twitter Application #5 - UsersDevelopment of Twitter Application #5 - Users
Development of Twitter Application #5 - UsersMyungjin Lee
 
Startup Metrics for Pirates (SeedCamp 2008)
Startup Metrics for Pirates (SeedCamp 2008)Startup Metrics for Pirates (SeedCamp 2008)
Startup Metrics for Pirates (SeedCamp 2008)Dave McClure
 
Membership Application (CiviCRM)
Membership Application (CiviCRM)Membership Application (CiviCRM)
Membership Application (CiviCRM)Wouter Hechtermans
 
Online rto management system
Online rto management system Online rto management system
Online rto management system DigneshPrajapati1
 
Silicon Valley 2.0: The Startup Metrics Revolution (Tokyo, December 2008)
Silicon Valley 2.0: The Startup Metrics Revolution (Tokyo, December 2008)Silicon Valley 2.0: The Startup Metrics Revolution (Tokyo, December 2008)
Silicon Valley 2.0: The Startup Metrics Revolution (Tokyo, December 2008)Dave McClure
 
Startup Metrics 4 Pirates (May 2010)
Startup Metrics 4 Pirates (May 2010)Startup Metrics 4 Pirates (May 2010)
Startup Metrics 4 Pirates (May 2010)Dave McClure
 
Startup Metrics for Pirates (Chicago, Aug 2010)
Startup Metrics for Pirates (Chicago, Aug 2010)Startup Metrics for Pirates (Chicago, Aug 2010)
Startup Metrics for Pirates (Chicago, Aug 2010)Dave McClure
 
CommonFloor Groups Pre-sales Brochure Digital
CommonFloor Groups Pre-sales Brochure Digital CommonFloor Groups Pre-sales Brochure Digital
CommonFloor Groups Pre-sales Brochure Digital Tarun Verma
 
Startup Metrics 4 Pirates (Montreal, May 2010)
Startup Metrics 4 Pirates (Montreal, May 2010)Startup Metrics 4 Pirates (Montreal, May 2010)
Startup Metrics 4 Pirates (Montreal, May 2010)Dave McClure
 
Startup Metrics for Pirates (Startonomics Beijing, June 2009)
Startup Metrics for Pirates (Startonomics Beijing, June 2009)Startup Metrics for Pirates (Startonomics Beijing, June 2009)
Startup Metrics for Pirates (Startonomics Beijing, June 2009)Dave McClure
 
Foursquare check out
Foursquare check outFoursquare check out
Foursquare check outSara
 
Startupmetrics 4 Pirates (Haas April, 2010)
Startupmetrics 4 Pirates (Haas April, 2010)Startupmetrics 4 Pirates (Haas April, 2010)
Startupmetrics 4 Pirates (Haas April, 2010)Dave McClure
 
MembershipReboot & Thinktecture: The Paradigms in Authentication &Authorizati...
MembershipReboot & Thinktecture: The Paradigms in Authentication &Authorizati...MembershipReboot & Thinktecture: The Paradigms in Authentication &Authorizati...
MembershipReboot & Thinktecture: The Paradigms in Authentication &Authorizati...Nur Fatihah Mat Ali
 
How to Configure Payment Methods in Magento
How to Configure Payment Methods in MagentoHow to Configure Payment Methods in Magento
How to Configure Payment Methods in MagentoM-Connect Media
 
"Auth for React.js APP", Nikita Galkin
"Auth for React.js APP", Nikita Galkin"Auth for React.js APP", Nikita Galkin
"Auth for React.js APP", Nikita GalkinFwdays
 
TechSupportCh 21 project.doc1Projects.doc Project 21-.docx
TechSupportCh 21 project.doc1Projects.doc Project 21-.docxTechSupportCh 21 project.doc1Projects.doc Project 21-.docx
TechSupportCh 21 project.doc1Projects.doc Project 21-.docxmattinsonjanel
 
Marketing Metrics 4 Pirates (July 2010)
Marketing Metrics 4 Pirates (July 2010)Marketing Metrics 4 Pirates (July 2010)
Marketing Metrics 4 Pirates (July 2010)Dave McClure
 

Similar to Omniauth: Future Proof Your Authentication (20)

Development of Twitter Application #5 - Users
Development of Twitter Application #5 - UsersDevelopment of Twitter Application #5 - Users
Development of Twitter Application #5 - Users
 
Startup Metrics for Pirates (SeedCamp 2008)
Startup Metrics for Pirates (SeedCamp 2008)Startup Metrics for Pirates (SeedCamp 2008)
Startup Metrics for Pirates (SeedCamp 2008)
 
Membership Application (CiviCRM)
Membership Application (CiviCRM)Membership Application (CiviCRM)
Membership Application (CiviCRM)
 
Service Provider
Service Provider Service Provider
Service Provider
 
Online rto management system
Online rto management system Online rto management system
Online rto management system
 
Silicon Valley 2.0: The Startup Metrics Revolution (Tokyo, December 2008)
Silicon Valley 2.0: The Startup Metrics Revolution (Tokyo, December 2008)Silicon Valley 2.0: The Startup Metrics Revolution (Tokyo, December 2008)
Silicon Valley 2.0: The Startup Metrics Revolution (Tokyo, December 2008)
 
Startup Metrics 4 Pirates (May 2010)
Startup Metrics 4 Pirates (May 2010)Startup Metrics 4 Pirates (May 2010)
Startup Metrics 4 Pirates (May 2010)
 
Startup Metrics for Pirates (Chicago, Aug 2010)
Startup Metrics for Pirates (Chicago, Aug 2010)Startup Metrics for Pirates (Chicago, Aug 2010)
Startup Metrics for Pirates (Chicago, Aug 2010)
 
CommonFloor Groups Pre-sales Brochure Digital
CommonFloor Groups Pre-sales Brochure Digital CommonFloor Groups Pre-sales Brochure Digital
CommonFloor Groups Pre-sales Brochure Digital
 
Incident_Change_Resource_Detailed_Resume
Incident_Change_Resource_Detailed_ResumeIncident_Change_Resource_Detailed_Resume
Incident_Change_Resource_Detailed_Resume
 
Startup Metrics 4 Pirates (Montreal, May 2010)
Startup Metrics 4 Pirates (Montreal, May 2010)Startup Metrics 4 Pirates (Montreal, May 2010)
Startup Metrics 4 Pirates (Montreal, May 2010)
 
Startup Metrics for Pirates (Startonomics Beijing, June 2009)
Startup Metrics for Pirates (Startonomics Beijing, June 2009)Startup Metrics for Pirates (Startonomics Beijing, June 2009)
Startup Metrics for Pirates (Startonomics Beijing, June 2009)
 
Foursquare check out
Foursquare check outFoursquare check out
Foursquare check out
 
Startupmetrics 4 Pirates (Haas April, 2010)
Startupmetrics 4 Pirates (Haas April, 2010)Startupmetrics 4 Pirates (Haas April, 2010)
Startupmetrics 4 Pirates (Haas April, 2010)
 
Chapter 8
Chapter 8Chapter 8
Chapter 8
 
MembershipReboot & Thinktecture: The Paradigms in Authentication &Authorizati...
MembershipReboot & Thinktecture: The Paradigms in Authentication &Authorizati...MembershipReboot & Thinktecture: The Paradigms in Authentication &Authorizati...
MembershipReboot & Thinktecture: The Paradigms in Authentication &Authorizati...
 
How to Configure Payment Methods in Magento
How to Configure Payment Methods in MagentoHow to Configure Payment Methods in Magento
How to Configure Payment Methods in Magento
 
"Auth for React.js APP", Nikita Galkin
"Auth for React.js APP", Nikita Galkin"Auth for React.js APP", Nikita Galkin
"Auth for React.js APP", Nikita Galkin
 
TechSupportCh 21 project.doc1Projects.doc Project 21-.docx
TechSupportCh 21 project.doc1Projects.doc Project 21-.docxTechSupportCh 21 project.doc1Projects.doc Project 21-.docx
TechSupportCh 21 project.doc1Projects.doc Project 21-.docx
 
Marketing Metrics 4 Pirates (July 2010)
Marketing Metrics 4 Pirates (July 2010)Marketing Metrics 4 Pirates (July 2010)
Marketing Metrics 4 Pirates (July 2010)
 

More from Kevin Ball

Flexible UI Components for a Multi-Framework World
Flexible UI Components for a Multi-Framework WorldFlexible UI Components for a Multi-Framework World
Flexible UI Components for a Multi-Framework WorldKevin Ball
 
Modern javascript
Modern javascriptModern javascript
Modern javascriptKevin Ball
 
Npm Shrinkwrap
Npm ShrinkwrapNpm Shrinkwrap
Npm ShrinkwrapKevin Ball
 
Understanding the Nesting Structure of the Ember.js View Layer
Understanding the Nesting Structure of the Ember.js View LayerUnderstanding the Nesting Structure of the Ember.js View Layer
Understanding the Nesting Structure of the Ember.js View LayerKevin Ball
 
Intro to Javascript
Intro to JavascriptIntro to Javascript
Intro to JavascriptKevin Ball
 
Ruby 1.9 Fibers
Ruby 1.9 FibersRuby 1.9 Fibers
Ruby 1.9 FibersKevin Ball
 

More from Kevin Ball (7)

Flexible UI Components for a Multi-Framework World
Flexible UI Components for a Multi-Framework WorldFlexible UI Components for a Multi-Framework World
Flexible UI Components for a Multi-Framework World
 
Modern javascript
Modern javascriptModern javascript
Modern javascript
 
Npm Shrinkwrap
Npm ShrinkwrapNpm Shrinkwrap
Npm Shrinkwrap
 
Understanding the Nesting Structure of the Ember.js View Layer
Understanding the Nesting Structure of the Ember.js View LayerUnderstanding the Nesting Structure of the Ember.js View Layer
Understanding the Nesting Structure of the Ember.js View Layer
 
Intro to Javascript
Intro to JavascriptIntro to Javascript
Intro to Javascript
 
Underscore.js
Underscore.jsUnderscore.js
Underscore.js
 
Ruby 1.9 Fibers
Ruby 1.9 FibersRuby 1.9 Fibers
Ruby 1.9 Fibers
 

Recently uploaded

Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024The Digital Insurer
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Angeliki Cooney
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfOverkill Security
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKJago de Vreede
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistandanishmna97
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 

Recently uploaded (20)

Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 

Omniauth: Future Proof Your Authentication