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
84
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
430
Os truques que o Rails não te contou @ RubyConf Brasil 2014
carlosantoniodasilva
20
830
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
95
Plataformatec's Hacking Evenings @ RubyConf Uruguay
carlosantoniodasilva
1
89
Other Decks in Programming
See All in Programming
責務と認知負荷を整える! 抽象レベルを意識した関心の分離
yahiru
8
1.5k
たのしいSocketのしくみ / Socket Under a Microscope
coe401_
8
1.4k
ML.NETで始める機械学習
ymd65536
0
240
楽しく向き合う例外対応
okutsu
0
710
Drawing Heighway’s Dragon- Recursive Function Rewrite- From Imperative Style in Pascal 64 To Functional Style in Scala 3
philipschwarz
PRO
0
100
Django NinjaによるAPI開発の効率化とリプレースの実践
kashewnuts
1
280
Rubyと自由とAIと
yotii23
6
1.8k
ナレッジイネイブリングにAIを活用してみる ゆるSRE勉強会 #9
nealle
0
160
Amazon Bedrockマルチエージェントコラボレーションを諦めてLangGraphに入門してみた
akihisaikeda
1
150
コードを読んで理解するko build
bells17
1
110
kintone開発を効率化するためにチームで試した施策とその結果を大放出!
oguemon
0
180
Jasprが凄い話
hyshu
0
180
Featured
See All Featured
The Art of Programming - Codeland 2020
erikaheidi
53
13k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
30
4.6k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
13
1k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
47
5.2k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
27
1.9k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
27
1.6k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
251
21k
BBQ
matthewcrist
87
9.5k
Building Your Own Lightsaber
phodgson
104
6.2k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
44
7k
Code Reviewing Like a Champion
maltzj
521
39k
Fireside Chat
paigeccino
35
3.2k
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