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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
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
130
Plataformatec's Hacking Evenings @ RubyConf Uruguay
carlosantoniodasilva
1
120
Other Decks in Programming
See All in Programming
광주소프트웨어마이스터고등학교 DevFest 특강 - 바이브 코딩 시대에서 주니어 개발자로 살아남는 방법
utilforever
1
150
Generative UI & AI-Assistants for Your Angular Solutions
manfredsteyer
PRO
0
120
なぜ関数型プログラミングで「型」と「証明」が語られるのか #fp_matsuri
kajitack
3
1k
Terraform標準の組織で AWS CDKをどう使うか
mu7889yoon
1
350
吝嗇家のためのAI活用 / AI development for miser - ChatGPT + Issue Driven Development
tooppoo
0
190
Android CLI
fornewid
0
120
使用 Meilisearch 建立新聞搜尋工具
johnroyer
0
170
【やさしく解説 設計編・中級 #6】良いアーキテクチャとは ~ 一本の登り道の、行き先 ~
panda728
PRO
0
180
act2-costs.pdf
sumedhbala
0
120
yield再入門 #phpcon
o0h
PRO
0
720
【やさしく解説 設計編 #1】「ドメイン駆動」と「実装駆動」ってなに? 〜設計の考え方を、たとえ話で学ぼう〜
panda728
PRO
1
120
地域 SRE コミュニティ最前線 - ホンマでっかSRE勉強会
tk3fftk
0
270
Featured
See All Featured
Typedesign – Prime Four
hannesfritz
42
3.1k
Art, The Web, and Tiny UX
lynnandtonic
304
22k
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
550
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
500
Scaling GitHub
holman
464
140k
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
420
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
2
610
Everyday Curiosity
cassininazir
0
260
Ruling the World: When Life Gets Gamed
codingconduct
0
290
Test your architecture with Archunit
thirion
1
2.3k
A Soul's Torment
seathinner
6
3.1k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.5k
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