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
Node.js+Passport+Google 認証を SPA から使う
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Tiny Mouse
February 16, 2018
Programming
840
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Node.js+Passport+Google 認証を SPA から使う
Mobile Act NAGOYA 2018/2/16
Tiny Mouse
February 16, 2018
More Decks by Tiny Mouse
See All by Tiny Mouse
今年がんばったこと
tinymouse
0
100
今年がんばったこと
tinymouse
0
140
【LT会】インプット・アウトプットどうしてる?
tinymouse
0
75
今年がんばったこと
tinymouse
0
200
.NET MAUI+Blazor を使ってみた
tinymouse
0
230
【LT会】この技術書がすごい
tinymouse
1
230
蔵書管理アプリを作り直した
tinymouse
1
1.1k
Windows アプリの開発手段の選択肢をまとめてみた
tinymouse
0
200
蔵書管理アプリを作りました
tinymouse
0
700
Other Decks in Programming
See All in Programming
LLM 101
dalinaum
0
470
あなたの await、OS まで届いてる? strace で覗く JavaScript の非同期
hasutosasaki
1
2.1k
Snowflake Openflow Connector利用の勘所 / 20261024developersio2026tokyo-snowflake-openflow
kasacchiful
PRO
0
290
Python Lambdaにおけるテストしやすい設計とAI支援の活用 / Designing Testable Python Lambda Functions with AI
kitano_yuichi
1
290
Spec-driven Development with AI
simas
PRO
0
2.2k
Seven New Principles of Software Engineering
yegor256
0
440
graphql-ruby を Spinel で速くしようとした話
mtsmfm
0
140
クラウドエージェントは、 何がそんなに便利なのか / what makes cloud agents so useful
rkaga
5
770
AmebaブログはKMPから卒業します
kmars0605
0
320
Kotlinの15年とServer-Side Kotlin
n_takehata
1
200
オーケストレーション記述言語 Katari
yukikurage
0
220
クラウドゲーミングのパフォーマンス最適化に挑む / Cloud Gaming Performance Tuning
vivion
0
320
Featured
See All Featured
GitHub's CSS Performance
jonrohan
1033
470k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.7k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
56
3.5k
Skip the Path - Find Your Career Trail
mkilby
1
280
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
290
Being A Developer After 40
akosma
PRO
92
590k
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
420
The Language of Interfaces
destraynor
162
27k
Code Reviewing Like a Champion
maltzj
529
40k
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
1
300
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
660
Transcript
Tiny Mouse Node.js Passport Google 認証 SPA 使 Mobile Act
NAGOYA 2018/2/16
自己紹介 @tinymouse_jp SI 企業 SE 日曜
二児 父 静岡県浜松市出身 東京都品川区在住 名古屋市在住 Windows 愛用 iPhone Android Android 会浜松支部 Android 会 Tiny Mouse
家計簿 作
家計簿 作
家計簿 作 Node.js nedb Electron
認 証機能 加 同時 nedb 別 集計機能
追加
認証機能 加
認証 Node 個別 app.get('/ ', ... <a href="/ "> 表示
Passport.js Node.js 認証
Node.js Express Passport 認証 Node app.get('/login', ... app.post('/login', passport.authenticate(... 表示
<a href="/login"> <form action="/login" method="post"> NG OK 認証 個別 登録 <form action="/login" method="post"> app.get('/ ', ... if (req.isAuhenticated()) ... 未 済 認証 <a href="/ "> 有効 表示 表示 app.post('/regist', ...
Node.js Express Passport 認証 Qiita 書 https://qiita.com/tinymouse/items/fa910bf80a038c7f9ccb
Node.js Express Passport 認証 Node app.get('/login', ... app.post('/login', passport.authenticate(... 表示
<a href="/login"> <form action="/login" method="post"> NG OK 認証 個別 登録 <form action="/login" method="post"> app.get('/ ', ... if (req.isAuhenticated()) ... 未 済 認証 <a href="/ "> 有効 表示 表示 app.post('/regist', ... 他 任
Node.js Passport Google 認証 使 Node 個別 app.get('/ ', ...
if (req.isAuhenticated()) ... 未 済 認証 <a href="/ "> 有効 <a href="/auth"> app.get('/auth', passport.authenticate(... Google 表示 app.get('/auth/callback', passport.authenticate(... NG OK 認証 表示 表示 認証
Node.js Passport Google 認証 使 Qiita 書 https://qiita.com/tinymouse/items/ab79a14173ebc7b75274
SPA Node app.post('/data', ... JSON fetch('/data') .then(... app.get('/app', ... <a
href="/app"> 全体 表示
Node OK NG 認証 登録 app.post('/regist', ... <form action="/login" method="post">
無効 app.post('/data', passport.authenticate(... JSON fetch('/data') .then(... OK NG ID Node.js Express Passport SPA 使 一時記憶 表示
Node.js Express Passport SPA 使 Node OK NG 認証 登録
app.post('/regist', ... <form action="/login" method="post"> 無効 app.post('/data', passport.authenticate(... JSON fetch('/data') .then(... OK NG ID 他 任 一時記憶 表示
pe Node <a href="/auth"> app.get('/auth', passport.authenticate(... Google 表示 認証 app.get('/app',
... <a href="/app"> 表示 遷移 Node.js Passport Google 認証 SPA 使
pe window.open('/auth'); 別 Node NG OK 認証 無効 app.get('/auth', passport.authenticate(...
Google 表示 app.get('/auth/callback', passport.authenticate(... NG OK 認証 認証 JSON 生成 表示 取得 一時記憶 fetch('/data') .then(... OK NG app.post('/data', passport.authenticate(... 一時記憶 Node.js Passport Google 認証 SPA 使
Node.js Passport Google 認証 SPA 使 Qiita 書 https://qiita.com/tinymouse/items/13cbbceae9d8e7c5901c
家計簿 作
認 証機能 加 同時 nedb 別 集計機能
追加 少
誰 一緒 作