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
110
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Devise @ Rails Summit 2009
Lightning Talk releasing Devise.
Carlos Antonio
October 13, 2009
More Decks by Carlos Antonio
See All by Carlos Antonio
Contribuindo para Open Source @ 1º Tech Day GURU- PR
carlosantoniodasilva
2
250
Contributing to Open Source: from beginning to lessons learned @ Tropical Ruby 2015
carlosantoniodasilva
5
510
Os truques que o Rails não te contou @ RubyConf Brasil 2014
carlosantoniodasilva
20
860
Os truques que o Rails não te contou @ TDC Floripa 2014
carlosantoniodasilva
18
990
Tricks that Rails didn't tell you about @ RailsConf 2014
carlosantoniodasilva
75
12k
Integração de gems com o Rails @ RS on Rails
carlosantoniodasilva
2
180
Escrevendo Aplicações Melhores @ RubyConf Brasil
carlosantoniodasilva
3
180
Railties @ WyeWorks
carlosantoniodasilva
1
120
Plataformatec's Hacking Evenings @ RubyConf Uruguay
carlosantoniodasilva
1
120
Other Decks in Programming
See All in Programming
Oxlintのカスタムルールの現況
syumai
6
1.2k
LaravelLive Japan の裏方のすべて — 第188回 PHP勉強会@東京 (2026-06-24)
suguruooki
2
130
Performance Engineering for Everyone
elenatanasoiu
0
240
コンテキストの使い捨てをやめる — ビジネスルール駆動開発と miko —
ioki
0
250
LLMによるContent Moderationの本番運用の裏側と品質担保への挑戦
suikabar
3
800
スマートグラスで並列バイブコーディング
hyshu
0
270
正しくソフトウェアを作る、前提を疑うための認知の視点 / doubt-premise
minodriven
21
7.1k
どこまでゆるくて許されるのか
tk3fftk
0
270
ローカルLLMを使ってB2Bサービスを作っていての学び
yaotti
0
220
脅威をエンジニアリングの糧にして――現場編 / Turning Threats into Engineering Fuel — Field Edition
nrslib
0
310
気圧・高度・GPSを記録&可視化するアプリ「Koudo」を作った話
hjmkth
1
330
Lessons from Spec-Driven Development
simas
PRO
0
230
Featured
See All Featured
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2k
Writing Fast Ruby
sferik
630
63k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.5k
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
5.9k
The Cost Of JavaScript in 2023
addyosmani
55
10k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
210
The SEO identity crisis: Don't let AI make you average
varn
0
500
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
240
Balancing Empowerment & Direction
lara
6
1.2k
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
210
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
5
1.1k
Google's AI Overviews - The New Search
badams
0
1.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