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
【SORACOM UG 東海】あらゆるモノがつながる社会へ、IoT と SORACOM
soracom
PRO
1
140
Além do else! Categorizando Pokemóns com Pattern Matching no JavaScript
wmsbill
0
710
AOAI をきっかけに 社内の Azure 管理を見直した話
recruitengineers
PRO
1
450
生産性向上チームの紹介
cybozuinsideout
PRO
1
920
One engineer company with Ruby on Rails
rstankov
2
430
自己改善からチームを動かす! 「セルフエンジニアリングマネージャー」のすゝめ
shoota
6
1k
VSCodeの拡張機能を作っている話
ebarakazuhiro
1
800
コードファーストの考え方。 Amplify Gen2から学ぶAWS次世代のWeb開発体験
yoshiitaka
2
360
Gradle Build Scanを使ってビルドのことを知ろう potatotips #87
tomorrowkey
2
160
LayerXにおけるLLMプロダクト開発の今までとこれから
layerx
PRO
4
700
[新卒向け研修資料] テスト文字列に「うんこ」と入れるな(2024年版)
infiniteloop_inc
5
18k
2024春 注目のWeb系 OSS & SaaS 3選
makies
0
180
Featured
See All Featured
Clear Off the Table
cherdarchuk
85
310k
The Invisible Side of Design
smashingmag
294
49k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
41
4.4k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
7
3.4k
Designing on Purpose - Digital PM Summit 2013
jponch
111
6.5k
Building an army of robots
kneath
300
41k
BBQ
matthewcrist
80
8.8k
What the flash - Photography Introduction
edds
64
11k
Making Projects Easy
brettharned
109
5.5k
Building a Scalable Design System with Sketch
lauravandoore
457
32k
Git: the NoSQL Database
bkeepers
PRO
423
63k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
8
1.3k
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