Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
UW Advanced Rails Week 2
Search
Ben Woodall
April 09, 2015
Technology
250
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
UW Advanced Rails Week 2
Slides from Week 2: OAuth
Ben Woodall
April 09, 2015
More Decks by Ben Woodall
See All by Ben Woodall
UW Advanced Rails Week 9
benwoodall
0
61
UW Advanced Rails Week 8
benwoodall
0
67
UW Advanced Rails Week 7
benwoodall
0
70
Week 6
benwoodall
0
71
UW Advanced Rails Week 5
benwoodall
0
78
UW Advanced Rails Week 4
benwoodall
0
85
UW Advanced Rails Week 3
benwoodall
0
87
UW Advanced Rails Week 1
benwoodall
0
120
A Bit More Git
benwoodall
1
5.1k
Other Decks in Technology
See All in Technology
Code for Security プロジェクト紹介 2026年10月
yu23ki14
0
110
脆弱性診断って、何をしているの? 〜弱点を見つけて、会社の改善につなげるまで〜
keeg
0
920
夫婦で子育てするための育児標準化
codmoninc
PRO
0
350
宣言型部分更新は何を解決しどこへ向かうのか
shuta13
1
460
AIにシークレットを見せない、WSL2で安全な開発環境
yazm
0
300
実践! SRE × AI - ABEMA における AIOps -
tetsuya28
8
3.1k
ストレスなくAIと付き合いたい!こんなときどうしてる?
namiki64
3
540
今さら理解するウェブフォントver.2026
takanorip
3
820
無理せず続ける、子育てエンジニアの学び
codmoninc
PRO
0
880
分析の民主化を支えるメタデータ整備の実践
kakehashi
PRO
4
1.4k
AI駆動で「他アプリの音を加工できる」アプリを作った
satomasahiro2005
0
150
AI コーディングと人間の認知スループット / CTO Night & Day 2026 Morning Session / AI Coding and Human Cognitive Throughput
prog893
4
1.1k
Featured
See All Featured
What the history of the web can teach us about the future of AI
inesmontani
PRO
2
740
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
380
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
280
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
2
410
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
710
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
530
Being A Developer After 40
akosma
92
590k
Statistics for Hackers
jakevdp
799
230k
Designing for humans not robots
tammielis
254
26k
Git: the NoSQL Database
bkeepers
PRO
433
67k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.4k
Joys of Absence: A Defence of Solitary Play
codingconduct
1
550
Transcript
Questions from Week 1? 1
Week 2: Authentication with Oauth Spring 2015 2
What is OAuth? Allows users to share data from one
site with another without having to worry about sharing usernames and passwords Access tokens can limit the amounts and types of data a user wishes to share RFC-6749 - https://tools.ietf.org/html/rfc6749 3
4
None
6
Shortener 7
Shortener 8
We need to update sign in/sign up page Controller actions
to handle Twitter authentication A user needs to be created after authenticating with Twitter 9 What do we know so far?
Tests 10
Tests 11
omniauth-twitter gem 12
Initializing Omniauth 13 config/initializers/twitter.rb
Initializing Omniauth 14 config/application.rb .gitignore
Our views 15 app/views/users/new.html.erb config/routes.rb
Our controller spec 16 spec/controllers/sessions_controller_spec.rb
Our controller 17 app/controllers/sessions_controller.rb
Our model 18 app/models/user.rb
Questions? 19