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
UW Advanced Rails Week 2
Search
Ben Woodall
April 09, 2015
Technology
0
87
UW Advanced Rails Week 2
Slides from Week 2: OAuth
Ben Woodall
April 09, 2015
Tweet
Share
More Decks by Ben Woodall
See All by Ben Woodall
UW Advanced Rails Week 9
benwoodall
0
34
UW Advanced Rails Week 8
benwoodall
0
42
UW Advanced Rails Week 7
benwoodall
0
40
Week 6
benwoodall
0
40
UW Advanced Rails Week 5
benwoodall
0
47
UW Advanced Rails Week 4
benwoodall
0
60
UW Advanced Rails Week 3
benwoodall
0
63
UW Advanced Rails Week 1
benwoodall
0
93
A Bit More Git
benwoodall
1
5k
Other Decks in Technology
See All in Technology
Handling focus in 2024
tahia910
0
120
MapLibreとAmazon Location Service
dayjournal
1
170
VSCodeの拡張機能を作っている話
ebarakazuhiro
1
700
開発パフォーマンスを最大化するための開発体制
ham0215
2
500
Cracking the KubeCon CfP
inductor
2
260
MixIT 2024 - Pulumi : Gérer son infra avec son langage de programmation préféré
ju_hnny5
1
110
エンジニアのキャリアをちょっと楽しくする3本の軸/Three Pillars to Make an Engineer's Career More Enjoyable
kwappa
1
2.8k
[新卒向け研修資料] テスト文字列に「うんこ」と入れるな(2024年版)
infiniteloop_inc
4
16k
require(ESM)とECMAScript仕様
uhyo
4
910
Azure Container Apps + Bicep 〜 こんな感じで運用しています
kaz29
3
600
エンジニア候補者向け資料2024.04.24.pdf
macloud
0
3.3k
自己改善からチームを動かす! 「セルフエンジニアリングマネージャー」のすゝめ
shoota
6
920
Featured
See All Featured
Building Better People: How to give real-time feedback that sticks.
wjessup
356
18k
Gamification - CAS2011
davidbonilla
76
4.6k
A Modern Web Designer's Workflow
chriscoyier
689
190k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
14
1.5k
What the flash - Photography Introduction
edds
64
11k
YesSQL, Process and Tooling at Scale
rocio
165
13k
Optimising Largest Contentful Paint
csswizardry
11
2.4k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
117
18k
VelocityConf: Rendering Performance Case Studies
addyosmani
321
23k
Infographics Made Easy
chrislema
238
18k
Done Done
chrislema
178
15k
The Power of CSS Pseudo Elements
geoffreycrofte
61
5k
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