Lock in $30 Savings on PRO—Offer Ends Soon! ⏳
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
790
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
35
今年がんばったこと
tinymouse
0
87
【LT会】インプット・アウトプットどうしてる?
tinymouse
0
49
今年がんばったこと
tinymouse
0
170
.NET MAUI+Blazor を使ってみた
tinymouse
0
180
【LT会】この技術書がすごい
tinymouse
1
190
蔵書管理アプリを作り直した
tinymouse
1
990
Windows アプリの開発手段の選択肢をまとめてみた
tinymouse
0
150
蔵書管理アプリを作りました
tinymouse
0
640
Other Decks in Programming
See All in Programming
これならできる!個人開発のすゝめ
tinykitten
PRO
0
110
愛される翻訳の秘訣
kishikawakatsumi
3
330
chocoZAPサービス予約システムをNuxtで内製化した話
rizap_tech
0
120
マスタデータ問題、マイクロサービスでどう解くか
kts
0
100
안드로이드 9년차 개발자, 프론트엔드 주니어로 커리어 리셋하기
maryang
1
110
ViewファーストなRailsアプリ開発のたのしさ
sugiwe
0
470
Claude Codeの「Compacting Conversation」を体感50%減! CLAUDE.md + 8 Skills で挑むコンテキスト管理術
kmurahama
0
180
AIコーディングエージェント(Gemini)
kondai24
0
230
【Streamlit x Snowflake】データ基盤からアプリ開発・AI活用まで、すべてをSnowflake内で実現
ayumu_yamaguchi
1
120
WebRTC と Rust と8K 60fps
tnoho
2
2k
Giselleで作るAI QAアシスタント 〜 Pull Requestレビューに継続的QAを
codenote
0
190
ゲームの物理 剛体編
fadis
0
350
Featured
See All Featured
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
34k
How To Stay Up To Date on Web Technology
chriscoyier
791
250k
Making Projects Easy
brettharned
120
6.5k
How STYLIGHT went responsive
nonsquared
100
6k
Making the Leap to Tech Lead
cromwellryan
135
9.7k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
37
2.6k
Designing for Performance
lara
610
69k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
1.8k
A Tale of Four Properties
chriscoyier
162
23k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.1k
Build your cross-platform service in a week with App Engine
jlugia
234
18k
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 別 集計機能
追加 少
誰 一緒 作