Devise - RSLA - 13oct2009
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Devise - RSLA - 13oct2009

on

  • 1,842 views

George Guimarães e Carlos Antonio talk about a new authentication solution, build as engine and rack based, for Rails at Rails Summit Latin America 2009

George Guimarães e Carlos Antonio talk about a new authentication solution, build as engine and rack based, for Rails at Rails Summit Latin America 2009

Statistics

Views

Total Views
1,842
Views on SlideShare
1,577
Embed Views
265

Actions

Likes
1
Downloads
9
Comments
0

5 Embeds 265

http://blog.plataformatec.com.br 238
http://feeds.feedburner.com 19
http://www.slideshare.net 4
http://localhost 3
http://web.archive.org 1

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Devise - RSLA - 13oct2009 Presentation Transcript

  • 1. Autenticação flexível com Devise http://github.com/plataformatec/devise Plataforma 2009
  • 2. Soluções Existentes Plataforma 2009
  • 3. Clearance Pontos positivos • Estrutura completa, como engine (MVC) • Confirmação de conta • Recuperação de senha Pontos negativos • Pouco flexível (apenas model User) • Não modularizado Plataforma 2009
  • 4. Authlogic Pontos positivos • Modelo bem flexível • Criptografia • Magic columns Pontos negativos • Não é solução completa (MVC) como o Clearance • Trata a sessão como modelo Plataforma 2009
  • 5. Nossa proposta Plataforma 2009
  • 6. Devise Pontos positivos • Rack based (via Warden): Rails, Metal, Sinatra • Solução completa (MVC), como engine • Múltiplos roles (logar como admin e user) • Modular e flexível Pontos negativos • Pouca base instalada • Menos de 10 watchers no github Plataforma 2009
  • 7. class User < ActiveRecord::Base devise :authenticable end Plataforma 2009
  • 8. class User < ActiveRecord::Base devise :confirmable end Plataforma 2009
  • 9. class User < ActiveRecord::Base devise :recoverable end Plataforma 2009
  • 10. class User < ActiveRecord::Base devise :validatable end Plataforma 2009
  • 11. class User < ActiveRecord::Base devise :all end Plataforma 2009
  • 12. ...tem mais coisa vindo Plataforma 2009
  • 13. Proteção contra Brute Force self.attempts_count = 10 self.attempts_timeframe = 2.hours Plataforma 2009
  • 14. Remember me self.remember_me = 2.weeks Plataforma 2009
  • 15. Migratable create_table :users do |t| t.authenticable t.confirmable end Plataforma 2009
  • 16. Magic colums self.login_count self.last_request_at self.last_login_ip Plataforma 2009
  • 17. github.com/plataformatec/devise github.com/plataformatec/devise_example blog.plataformatec.com.br Plataforma 2009