Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Devise @ Rails Summit 2009
Search
Carlos Antonio
October 13, 2009
Programming
1
82
Devise @ Rails Summit 2009
Lightning Talk releasing Devise.
Carlos Antonio
October 13, 2009
Tweet
Share
More Decks by Carlos Antonio
See All by Carlos Antonio
Contribuindo para Open Source @ 1º Tech Day GURU- PR
carlosantoniodasilva
2
230
Contributing to Open Source: from beginning to lessons learned @ Tropical Ruby 2015
carlosantoniodasilva
5
420
Os truques que o Rails não te contou @ RubyConf Brasil 2014
carlosantoniodasilva
20
820
Os truques que o Rails não te contou @ TDC Floripa 2014
carlosantoniodasilva
18
950
Tricks that Rails didn't tell you about @ RailsConf 2014
carlosantoniodasilva
76
11k
Integração de gems com o Rails @ RS on Rails
carlosantoniodasilva
2
150
Escrevendo Aplicações Melhores @ RubyConf Brasil
carlosantoniodasilva
3
140
Railties @ WyeWorks
carlosantoniodasilva
1
92
Plataformatec's Hacking Evenings @ RubyConf Uruguay
carlosantoniodasilva
1
87
Other Decks in Programming
See All in Programming
ECS Service Connectのこれまでのアップデートと今後のRoadmapを見てみる
tkikuc
2
250
CSC509 Lecture 11
javiergs
PRO
0
180
アジャイルを支えるテストアーキテクチャ設計/Test Architecting for Agile
goyoki
9
3.3k
Duckdb-Wasmでローカルダッシュボードを作ってみた
nkforwork
0
130
イベント駆動で成長して委員会
happymana
1
320
Streams APIとTCPフロー制御 / Web Streams API and TCP flow control
tasshi
2
350
ピラミッド、アイスクリームコーン、SMURF: 自動テストの最適バランスを求めて / Pyramid Ice-Cream-Cone and SMURF
twada
PRO
10
1.3k
카카오페이는 어떻게 수천만 결제를 처리할까? 우아한 결제 분산락 노하우
kakao
PRO
0
110
『ドメイン駆動設計をはじめよう』のモデリングアプローチ
masuda220
PRO
8
540
TypeScript Graph でコードレビューの心理的障壁を乗り越える
ysk8hori
2
1.1k
Realtime API 入門
riofujimon
0
150
Ethereum_.pdf
nekomatu
0
460
Featured
See All Featured
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
6
410
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.1k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
38
1.8k
Making Projects Easy
brettharned
115
5.9k
Faster Mobile Websites
deanohume
305
30k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
131
33k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
506
140k
Statistics for Hackers
jakevdp
796
220k
What’s in a name? Adding method to the madness
productmarketing
PRO
22
3.1k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
4
370
Why You Should Never Use an ORM
jnunemaker
PRO
54
9.1k
Transcript
Plataforma 2009 Autenticação flexível com Devise http://github.com/plataformatec/devise
None
Plataforma 2009 Soluções Existentes
Plataforma 2009 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 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 Nossa proposta
Plataforma 2009 Devise • Pontos positivos – Rack based (via
Warden): Rails, Metal, Sinatra – Solução completa (MVC), como engine – Múltiplos roles (logar como admin, user, ...) – Modular e flexível • Pontos negativos – Pouca base instalada – Menos de 10 watchers no github
Plataforma 2009 class User < ActiveRecord::Base devise :authenticable end
Plataforma 2009 class User < ActiveRecord::Base devise :confirmable end
Plataforma 2009 class User < ActiveRecord::Base devise :recoverable end
Plataforma 2009 class User < ActiveRecord::Base devise :validatable end
Plataforma 2009 class User < ActiveRecord::Base devise :all end
Plataforma 2009 ActionController::Routing::Routes.draw do |map| map.devise_for :users end
Plataforma 2009 ...tem mais coisa vindo
Plataforma 2009 Proteção contra Brute Force self.attempts_count = 10 self.attempts_timeframe
= 2.hours
Plataforma 2009 Remember me self.remember_me = 2.weeks
Plataforma 2009 Migratable create_table :users do |t| t.authenticable t.confirmable end
Plataforma 2009 Magic colums self.login_count self.last_request_at self.last_login_ip
Plataforma 2009 github.com/plataformatec/devise blog.plataformatec.com.br