Lock in $30 Savings on PRO—Offer Ends Soon! ⏳
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
90
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
240
Contributing to Open Source: from beginning to lessons learned @ Tropical Ruby 2015
carlosantoniodasilva
5
480
Os truques que o Rails não te contou @ RubyConf Brasil 2014
carlosantoniodasilva
20
840
Os truques que o Rails não te contou @ TDC Floripa 2014
carlosantoniodasilva
18
970
Tricks that Rails didn't tell you about @ RailsConf 2014
carlosantoniodasilva
76
12k
Integração de gems com o Rails @ RS on Rails
carlosantoniodasilva
2
170
Escrevendo Aplicações Melhores @ RubyConf Brasil
carlosantoniodasilva
3
160
Railties @ WyeWorks
carlosantoniodasilva
1
110
Plataformatec's Hacking Evenings @ RubyConf Uruguay
carlosantoniodasilva
1
100
Other Decks in Programming
See All in Programming
Cell-Based Architecture
larchanjo
0
140
tsgolintはいかにしてtypescript-goの非公開APIを呼び出しているのか
syumai
7
2.3k
Patterns of Patterns
denyspoltorak
0
330
Denoのセキュリティに関する仕組みの紹介 (toranoana.deno #23)
uki00a
0
160
AI時代を生き抜く 新卒エンジニアの生きる道
coconala_engineer
1
420
안드로이드 9년차 개발자, 프론트엔드 주니어로 커리어 리셋하기
maryang
1
130
Canon EOS R50 V と R5 Mark II 購入でみえてきた最近のデジイチ VR180 事情、そして VR180 静止画に活路を見出すまで
karad
0
140
JETLS.jl ─ A New Language Server for Julia
abap34
2
450
Spinner 軸ズレ現象を調べたらレンダリング深淵に飲まれた #レバテックMeetup
bengo4com
0
170
AIコーディングエージェント(skywork)
kondai24
0
200
Context is King? 〜Verifiability時代とコンテキスト設計 / Beyond "Context is King"
rkaga
10
1.4k
これならできる!個人開発のすゝめ
tinykitten
PRO
0
130
Featured
See All Featured
Deep Space Network (abreviated)
tonyrice
0
21
How to train your dragon (web standard)
notwaldorf
97
6.4k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
0
100
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
1.7k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
0
260
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
1.9k
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
120
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
410
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
2.8k
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
0
94
Why Our Code Smells
bkeepers
PRO
340
57k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
1
27
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