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
160
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
37
UW Advanced Rails Week 8
benwoodall
0
46
UW Advanced Rails Week 7
benwoodall
0
43
Week 6
benwoodall
0
44
UW Advanced Rails Week 5
benwoodall
0
52
UW Advanced Rails Week 4
benwoodall
0
64
UW Advanced Rails Week 3
benwoodall
0
65
UW Advanced Rails Week 1
benwoodall
0
94
A Bit More Git
benwoodall
1
5.1k
Other Decks in Technology
See All in Technology
データ分析エージェント Socrates の育て方
na0
6
2.2k
Oracle Base Database Service 技術詳細
oracle4engineer
PRO
10
75k
S3アクセス制御の設計ポイント
tommy0124
3
200
Webアプリケーションにオブザーバビリティを実装するRust入門ガイド
nwiizo
7
890
Aurora DSQLはサーバーレスアーキテクチャの常識を変えるのか
iwatatomoya
1
1.2k
slog.Handlerのよくある実装ミス
sakiengineer
4
470
スマートファクトリーの第一歩 〜AWSマネージドサービスで 実現する予知保全と生成AI活用まで
ganota
2
310
Apache Spark もくもく会
taka_aki
0
130
20250912_RPALT_データを集める→とっ散らかる問題_Obsidian紹介
ratsbane666
0
100
MagicPod導入から半年、オープンロジQAチームで実際にやったこと
tjoko
0
110
ブロックテーマ時代における、テーマの CSS について考える Toro_Unit / 2025.09.13 @ Shinshu WordPress Meetup
torounit
0
130
なぜテストマネージャの視点が 必要なのか? 〜 一歩先へ進むために 〜
moritamasami
0
240
Featured
See All Featured
Fireside Chat
paigeccino
39
3.6k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
46
7.6k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
53k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
48
9.7k
4 Signs Your Business is Dying
shpigford
184
22k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
252
21k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
Embracing the Ebb and Flow
colly
87
4.8k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
285
14k
Into the Great Unknown - MozCon
thekraken
40
2k
Mobile First: as difficult as doing things right
swwweet
224
9.9k
GraphQLとの向き合い方2022年版
quramy
49
14k
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