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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
xfernandox
November 13, 2012
Programming
1
190
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
副作用をどこに置くか問題:オブジェクト指向で整理する設計判断ツリー
koxya
1
610
FOSDEM 2026: STUNMESH-go: Building P2P WireGuard Mesh Without Self-Hosted Infrastructure
tjjh89017
0
170
16年目のピクシブ百科事典を支える最新の技術基盤 / The Modern Tech Stack Powering Pixiv Encyclopedia in its 16th Year
ahuglajbclajep
5
1k
AI Agent の開発と運用を支える Durable Execution #AgentsInProd
izumin5210
7
2.3k
なるべく楽してバックエンドに型をつけたい!(楽とは言ってない)
hibiki_cube
0
140
15年続くIoTサービスのSREエンジニアが挑む分散トレーシング導入
melonps
2
220
高速開発のためのコード整理術
sutetotanuki
1
410
Grafana:建立系統全知視角的捷徑
blueswen
0
330
【卒業研究】会話ログ分析によるユーザーごとの関心に応じた話題提案手法
momok47
0
200
それ、本当に安全? ファイルアップロードで見落としがちなセキュリティリスクと対策
penpeen
7
3.9k
Package Management Learnings from Homebrew
mikemcquaid
0
230
izumin5210のプロポーザルのネタ探し #tskaigi_msup
izumin5210
1
140
Featured
See All Featured
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
380
The SEO identity crisis: Don't let AI make you average
varn
0
330
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
66
37k
Six Lessons from altMBA
skipperchong
29
4.2k
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
180
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
61
52k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.1k
How to make the Groovebox
asonas
2
1.9k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
1
57
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
2
420
Stop Working from a Prison Cell
hatefulcrawdad
273
21k
How to train your dragon (web standard)
notwaldorf
97
6.5k
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