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
Node.js+Passport+Google 認証を SPA から使う
Search
Tiny Mouse
February 16, 2018
Programming
0
650
Node.js+Passport+Google 認証を SPA から使う
Mobile Act NAGOYA 2018/2/16
Tiny Mouse
February 16, 2018
Tweet
Share
More Decks by Tiny Mouse
See All by Tiny Mouse
今年がんばったこと
tinymouse
0
82
.NET MAUI+Blazor を使ってみた
tinymouse
0
79
【LT会】この技術書がすごい
tinymouse
1
130
蔵書管理アプリを作り直した
tinymouse
1
600
Windows アプリの開発手段の選択肢をまとめてみた
tinymouse
0
35
蔵書管理アプリを作りました
tinymouse
0
490
Google Apps Script アプリを配付する
tinymouse
0
62
蔵書管理アプリを作っています
tinymouse
1
400
サーバサイドを Google Apps Script で書く
tinymouse
0
290
Other Decks in Programming
See All in Programming
AWS Application Composerで始める、 サーバーレスなデータ基盤構築 / 20240406-jawsug-hokuriku-shinkansen
kasacchiful
1
260
今、知っておきたい! 生成AIエージェントの世界
elith
3
350
Build Apps for iOS, Android & Desktop in 100% Kotlin With Compose Multiplatform (mDevCamp 2024)
zsmb
0
280
educure_カリキュラム生操作マニュアル.pdf
linew_official
0
730
Rethinking UI building strategies @ SFI 2024
letelete
0
270
Changed Rules: Architectures with Lightweight Stores
manfredsteyer
PRO
0
240
OpenAPIを中心に考えるAPI開発入門 / Introduction to API Development with a Focus on OpenAPI
seike460
PRO
2
170
Komplexe Oberflächen mit SVG und der Web Animation API
joergneumann
0
670
Blue/Greenデプロイの導入による 運用フローの改善
kudoas
1
370
Random\Randomizer クラスで日常のあれこれを解決しよう! / Random\Randomizer class solves familiar trouble
cocoeyes02
0
220
Ruby GitHub Packages
bkuhlmann
0
630
GitHub Copilotのススメ
marcy731
1
200
Featured
See All Featured
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
274
13k
Gamification - CAS2011
davidbonilla
76
4.6k
Being A Developer After 40
akosma
57
580k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
226
51k
Designing on Purpose - Digital PM Summit 2013
jponch
110
6.5k
Embracing the Ebb and Flow
colly
80
4.1k
A better future with KSS
kneath
231
16k
RailsConf 2023
tenderlove
4
540
Principles of Awesome APIs and How to Build Them.
keavy
121
16k
Infographics Made Easy
chrislema
238
18k
Navigating Team Friction
lara
178
13k
Building Your Own Lightsaber
phodgson
99
5.7k
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 別 集計機能
追加 少
誰 一緒 作