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
The Anatomy of OmniAuth
Search
xfernandox
November 13, 2012
Programming
200
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
The Anatomy of OmniAuth
A quick start guide and walk through the anatomy and implementation of OmniAuth.
xfernandox
November 13, 2012
Other Decks in Programming
See All in Programming
コードレビューのボトルネックを"する側"と"される側"の両面から解消する
yub0n
2
1.6k
[ハンズオン]AIへの指示だけで「五目並べ」を作ってみよう
satoshi256kbyte
1
380
iOS 27でニュースアプリはどう変わる!? 〜日経電子版の新機能対応と、開発事例から〜
lynnswap
7
13k
Agentic Software Factoryに、すごく賢いIF文を。 / super smart IF statement into the Agentic Software Factory.
rkaga
8
2.2k
パスワード再設定メールのURLについて知っておこう
uyuki234
0
160
UnityでSystem.Net.WebSocketsなWebSocketサーバが動かないのでUnity Monoのコードを覗いてみた / about implementing websocket server with unity mono
drumath2237
1
610
TechTown - Creating Composable Callables in Contemporary C++
rollbear
0
130
最近”作らせてる” ローカルAIアプリの話
akit37
0
470
動作中のプログラムの中身をリアルタイムに覗く / Realtime Debugger for CSharp with Roslyn
prota
1
1.9k
Vue Fes Japan の “作る側”に関わってみて
naokihaba
0
160
GemmaをJevのように使ってみる / Use Gemma like Jev
kishida
5
790
設計次第でAIコードの読む量は減らせる / designing-for-code-reading
minodriven
35
17k
Featured
See All Featured
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
69
67k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
990
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.6k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
1
3.4k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
1.1k
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
380
From π to Pie charts
rasagy
1
400
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
For a Future-Friendly Web
brad_frost
184
10k
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
330
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
33
5.2k
Into the Great Unknown - MozCon
thekraken
41
2.8k
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