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
The Anatomy of OmniAuth
Search
xfernandox
November 13, 2012
Programming
1
180
The Anatomy of OmniAuth
A quick start guide and walk through the anatomy and implementation of OmniAuth.
xfernandox
November 13, 2012
Tweet
Share
Other Decks in Programming
See All in Programming
educure_カリキュラム生操作マニュアル.pdf
linew_official
0
470
GraphQLサーバの構成要素を整理する #ハッカー鮨 #tsukijigraphql / graphql server technology selection
izumin5210
1
190
ログラスを支える設計標準について / loglass-design-standards
urmot
10
2.1k
puregoの活用例
aethiopicuschan
0
220
Semantic search with Django and pgvector
pauloxnet
0
240
PHP8.3の機能を振り返る / Review of PHP 8.3 features
seike460
PRO
1
110
はてなにおける CSS Modules、及び CSS Modules に足りないもの / CSS Modules in Hatena, and CSS Modules missing parts
mizdra
3
340
Rails と人魚の話/rails-and-mermaid
sanfrecce_osaka
0
100
データアナリストが行うDatabricksを活用したETLの自動化事例
shinoa
0
250
コーンフレークから始める モデリング会話入門
ogurotakayuki
0
280
GitHub Actionsで泣かないためにやっておきたい設定 / Recommended GHA settings to avoid crying
pinkumohikan
3
490
脱・初心者!脱・マネコン!AWS CDKを使ってみませんか!?
har1101
0
300
Featured
See All Featured
Docker and Python
trallard
33
2.7k
Embracing the Ebb and Flow
colly
79
4.1k
GraphQLの誤解/rethinking-graphql
sonatard
50
9.2k
Building Adaptive Systems
keathley
30
1.8k
It's Worth the Effort
3n
180
27k
[RailsConf 2023] Rails as a piece of cake
palkan
22
3.9k
Designing for Performance
lara
601
67k
Happy Clients
brianwarren
91
6.4k
Principles of Awesome APIs and How to Build Them.
keavy
120
16k
A Tale of Four Properties
chriscoyier
150
22k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
76
41k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
18
1.7k
Transcript
11/13/12 — @joshrowley — @flatironschool Authenticate with OmniAuth The anatomy
and implementation of OmniAuth Wednesday, November 14, 12
On the Internets ✤@joshrowley ✤
[email protected]
✤github.com/xfernandox Wednesday, November 14, 12
Find notes for this presentation ✤ github.com/xfernandox/babl ✤ Feel free
to fork, checkout the before branch to get a version of the application before I go through the implementation. ✤ All my notes in README Wednesday, November 14, 12
What does this presentation cover? ✤ I. Anatomy of OmniAuth
How does it work? ✤ II. Implement OmniAuth! Let’s write the code. Wednesday, November 14, 12
What does this presentation *not*cover? ✤ Other authentication libraries Devise,
Authlogic, Clearance, etc. ✤ Implementing user authorizations ✤ Low-level guts of OmniAuth Wednesday, November 14, 12
✤ Create from scratch ✤ Use existing library to create
own authentication ✤ Use OmniAuth to authenticate with anyone* What are our options? *as long as there’s a strategy Wednesday, November 14, 12
11/13/12 — @joshrowley — @flatironschool Part I: Anatomy of OmniAuth
How does it work? Wednesday, November 14, 12
The next slides are from a talk by Michael Bleigh,
creator of OmniAuth @ RailsConf 2011 http://www.intridea.com/blog/2011/5/31/omniauth-from- the-ground-up Wednesday, November 14, 12
Wednesday, November 14, 12
What’s going on? Wednesday, November 14, 12
Wednesday, November 14, 12
Thanks @seldomatt for the image: blog.seldomatt.com Wednesday, November 14, 12
Thanks @seldomatt for the image: blog.seldomatt.com Wednesday, November 14, 12
This means OmniAuth works with any Rack based Ruby application.
Wednesday, November 14, 12
OmniAuth in Sinatra Wednesday, November 14, 12
OmniAuth in Rails Wednesday, November 14, 12
Wednesday, November 14, 12
OmniAuth in Rails Wednesday, November 14, 12
Wednesday, November 14, 12
Wednesday, November 14, 12
Wednesday, November 14, 12
Wednesday, November 14, 12
Wednesday, November 14, 12
Wednesday, November 14, 12
Wednesday, November 14, 12
Wednesday, November 14, 12
Wednesday, November 14, 12
The Bare Minimum Hash Wednesday, November 14, 12
Wednesday, November 14, 12
Wednesday, November 14, 12
Let’s look at a strategy: ✤ Facebook: https://github.com/mkdynamic/omniauth-facebook/ blob/master/lib/omniauth/strategies/facebook.rb Wednesday,
November 14, 12
Date Part II: Implementing OmniAuth That’s all fine and dandy,
but how do I actually write the code? Wednesday, November 14, 12
Imagine... Wednesday, November 14, 12
BABL Wednesday, November 14, 12
Babl is Another weBLog Wednesday, November 14, 12
db/schema.rb Posts have a title and content Very simple model
so far Wednesday, November 14, 12
Wednesday, November 14, 12