omniauth: future proof your authentication
DESCRIPTION
These are the slides from a lightning talk I gave to SDRuby about Omniauth and the future of authentication in rails applications.TRANSCRIPT
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_passwordend
The Problem
The Problem
The Problem
alter_table :users do |t| t.integer :facebook_uid, :Iimit => 8 t.string :facebook_auth_tokenend
The Problem
alter_table :users do |t| t.integer :facebook_uid, :Iimit => 8 t.string :facebook_auth_tokenend
The Problem
alter_table :users do |t| t.integer :facebook_uid, :Iimit => 8 t.string :facebook_auth_tokenend
The Problem
alter_table :users do |t| t.integer :facebook_uid, :Iimit => 8 t.string :facebook_auth_tokenend
The Problem
alter_table :users do |t| t.integer :facebook_uid, :Iimit => 8 t.string :facebook_auth_tokenend
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 :tokenend
The Solution: Omniauth
More Info
Learnhttp://railscasts.com/episodes/235-omniauth-part-1http://railscasts.com/episodes/236-omniauth-part-2
Dohttps://github.com/intridea/omniauth