← All slides

Intro to Authentication & Membership Features — Slides

30 lessons, 410 slides. Each lesson's text and code as one deck (the slides are in Japanese).

Version 1 (made 2026-11-06)

Payment is handled on Stripe's page. After buying, you can download from this page at any time.

Please log in to use a coupon code. You can also enter a promotion code on the payment page (Stripe).

Samples

Sample slide 1 Sample slide 2 Sample slide 3

What's included

  • slides.pdf — One slide per page. For checking or printing
  • png/ — 1920×1080 images, ready to drop into a video editor
  • index.html — Open in a browser to present. Press P for the presenter view (notes, next slide, elapsed time)

Each lesson has its own folder. The lesson text is kept as is, so what to say appears in the presenter notes.

How you may use them

  • Your own study
  • Classes, lectures and study groups you teach yourself
  • In-house training at your own company or organization
  • On screen in videos you record yourself for those classes or trainings
  • Editing the wording or reordering slides for those uses
  • Handing out the slide files themselves (PDF, PNG, HTML) to learners or anyone else
  • Selling the slides, or edited versions of them, or including them in paid materials
  • Posting them anywhere public (websites, social media, public videos on video sites, etc.)
  • Removing the 4peiron.dev credit and presenting them as your own work

4peiron.dev keeps the copyright. What you buy is the right to use the slides as described above. The same terms are in README.txt inside the ZIP.

Contents

1

パスワードの保存とソルト付きハッシュ

13 slides

2

セッションと Cookie でログインを保つ

12 slides

3

CSRF トークンでなりすまし POST を防ぐ

12 slides

4

認証を自前で作らない理由

13 slides

5

ログインとログアウトの正体

13 slides

6

サインアップでユーザーを作る

14 slides

7

確認メールのトークンでアドレスを確かめる

12 slides

8

時限つきのログインコード(マジックリンク)

24 slides

9

パスワードリセットと時限トークン

14 slides

10

登録前にパスワードの強度を検証する

13 slides

11

メール送信と SMTP の設定

12 slides

12

OAuth 2.0 の認可コードフロー

13 slides

13

state でログインの乗っ取りを防ぐ

13 slides

14

コールバックで code と state を受け取る

13 slides

15

認可コードをトークンに交換する

12 slides

16

Google・GitHub・LINE・X の鍵と設定

14 slides

17

SNS アカウントをユーザーに紐づける

13 slides

18

SNS ログインは django-allauth に任せる

13 slides

19

Profile でユーザーモデルを拡張する

13 slides

20

権限とロールで「できること」を分ける

13 slides

21

プランに応じて本編を出し分ける

12 slides

22

無料で見せる範囲をサーバで切る

13 slides

23

ログイン必須ページを守る

12 slides

24

レート制限で乱用を抑える

13 slides

25

連続失敗のロックでブルートフォースを止める

26 slides

26

TOTP で二要素認証を足す

13 slides

27

セッション ID の付け替えと鍵の管理

14 slides

28

「ログインできない」を原因別に切り分ける

13 slides

29

監査ログで誰が・いつ・何をしたかを残す

12 slides

30

退会で消すもの・残すもの

13 slides

The lesson text is on the course page. Slides are sold separately from the membership; members also need to buy them. Refunds follow the Terms of Service.