Your SlideShare is downloading. ×
0
Devise - RSLA - 13oct2009
Devise - RSLA - 13oct2009
Devise - RSLA - 13oct2009
Devise - RSLA - 13oct2009
Devise - RSLA - 13oct2009
Devise - RSLA - 13oct2009
Devise - RSLA - 13oct2009
Devise - RSLA - 13oct2009
Devise - RSLA - 13oct2009
Devise - RSLA - 13oct2009
Devise - RSLA - 13oct2009
Devise - RSLA - 13oct2009
Devise - RSLA - 13oct2009
Devise - RSLA - 13oct2009
Devise - RSLA - 13oct2009
Devise - RSLA - 13oct2009
Devise - RSLA - 13oct2009
Devise - RSLA - 13oct2009
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Devise - RSLA - 13oct2009

1,028

Published on

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

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,028
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
10
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

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

×