22
Omniauth Future Proof Your Authentication

Omniauth: Future Proof Your Authentication

Embed Size (px)

DESCRIPTION

These are the slides from a lightning talk I gave to SDRuby about Omniauth and the future of authentication in rails applications.

Citation preview

Page 1: Omniauth: Future Proof Your Authentication

Omniauth

Future Proof Your Authentication

Page 2: Omniauth: Future Proof Your Authentication

Roadmap

What's Authentication?

Traditional Approach

The Problem

The Solution: Omniauth

Page 3: Omniauth: Future Proof Your Authentication

What's Authentication?

Page 4: Omniauth: Future Proof Your Authentication

What's Authentication?

Confirmation of Identity & Privileges

Page 5: Omniauth: Future Proof Your Authentication

What's Authentication?

Confirmation of Identity & Privileges

Page 6: Omniauth: Future Proof Your Authentication

What's Authentication?

Confirmation of Identity & Privileges

Page 7: Omniauth: Future Proof Your Authentication

What's Authentication?

Confirmation of Identity & Privileges

Page 8: Omniauth: Future Proof Your Authentication

Traditional Approach

Combine Identity & Authentication

Page 9: Omniauth: Future Proof Your Authentication

Traditional Approach

Combine Identity & Authentication

create_table(:users) do |t| t.string :username t.string :encrypted_passwordend

Page 10: Omniauth: Future Proof Your Authentication

The Problem

Page 11: Omniauth: Future Proof Your Authentication

The Problem

Page 12: Omniauth: Future Proof Your Authentication

The Problem

alter_table :users do |t| t.integer :facebook_uid, :Iimit => 8 t.string :facebook_auth_tokenend

Page 13: Omniauth: Future Proof Your Authentication

The Problem

alter_table :users do |t| t.integer :facebook_uid, :Iimit => 8 t.string :facebook_auth_tokenend

Page 14: Omniauth: Future Proof Your Authentication

The Problem

alter_table :users do |t| t.integer :facebook_uid, :Iimit => 8 t.string :facebook_auth_tokenend

Page 15: Omniauth: Future Proof Your Authentication

The Problem

alter_table :users do |t| t.integer :facebook_uid, :Iimit => 8 t.string :facebook_auth_tokenend

Page 16: Omniauth: Future Proof Your Authentication

The Problem

alter_table :users do |t| t.integer :facebook_uid, :Iimit => 8 t.string :facebook_auth_tokenend

Page 17: Omniauth: Future Proof Your Authentication

The Problem

Page 18: Omniauth: Future Proof Your Authentication

The Solution: Omniauth

Separate Identity from Authentication

Page 19: Omniauth: Future Proof Your 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

Page 20: Omniauth: Future Proof Your Authentication

The Solution: Omniauth

Page 21: Omniauth: Future Proof Your Authentication

More Info

Learnhttp://railscasts.com/episodes/235-omniauth-part-1http://railscasts.com/episodes/236-omniauth-part-2

Dohttps://github.com/intridea/omniauth

Page 22: Omniauth: Future Proof Your Authentication

Thanks!

Kevin Ball @kbal11

[email protected]