Skip to Content
実践 Keycloak ―OpenID Connect、OAuth 2.0を利用したモダンアプリケーションのセキュリティー保護
book

実践 Keycloak ―OpenID Connect、OAuth 2.0を利用したモダンアプリケーションのセキュリティー保護

by Stian Thorgersen, Pedro Igor Silva, 和田 広之, 田村 広平, 乗松 隆志, 田畑 義之
October 2022
Intermediate to advanced
352 pages
5h 8m
Japanese
O'Reilly Japan, Inc.
Content preview from 実践 Keycloak ―OpenID Connect、OAuth 2.0を利用したモダンアプリケーションのセキュリティー保護

11章ユーザーの認証

 前章では、Keycloakでのユーザーの管理方法を解説し、ユーザー認証の例を紹介しました。ユーザーを認証するためのKeycloakの設定がいかに簡単であるかを体感できたかと思います。前章では解説しませんでしたが、ユーザー認証には、ログイン画面を使用してユーザーにパスワードを求める認証だけではなく、もっと多くの種類があります。

 本章では、ユーザー認証が機能する仕組みと、ユーザーを認証するために使用できるさまざまな認証方法について詳しく見ていきます。また、パスワードベースの認証の仕組みや、2要素認証(Two-Factor Authentication:2FA)多要素認証(Multi-Factor Authentication:MFA)を活用することで、Keycloakを強力な認証システムとして利用する方法についても詳しく紹介します。そのために、ユーザーを認証するために選択できるさまざまな種類のクレデンシャルと、それらがどのように連携してシステムの全体的なセキュリティーを向上させるかについて学びます。

 本章で取り上げる主なトピックは、以下の通りです。

  • 認証フロー
  • パスワードの使用
  • ワンタイムパスワード(OTP)の使用
  • Web Authentication(WebAuthn)の使用
  • 強力な認証の使用

11.1 技術要件

 始める前に、myrealmレルムを未作成の場合は作成し、そのレルムにaliceというユーザーを作成してください。次節以降、Keycloakのアカウントコンソールを使って、さまざまな認証方法でaliceユーザーを認証していきます。

11.2 認証フロー

 Keycloakでは、認証フローに応じて認証が行われます。認証フローとは、アイデンティティーの検証方法を定義するためにグループ化された一連のステップ(エグゼキューション)のことを指します。認証フローによって、認証で要求されることや、認証対象であるアクターのアイデンティティーを検証するステップが変わります。 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

セキュアで信頼性のあるシステム構築 ―Google SREが考える安全なシステムの設計、実装、保守

セキュアで信頼性のあるシステム構築 ―Google SREが考える安全なシステムの設計、実装、保守

Heather Adkins, Betsy Beyer, Paul Blankinship, Piotr Lewandowski, Ana Oprea, Adam Stubblefield, Kuma Arakawa, 渡邉 了介
実践 自然言語処理 ―実世界NLPアプリケーション開発のベストプラクティス

実践 自然言語処理 ―実世界NLPアプリケーション開発のベストプラクティス

Sowmya Vajjala, Bodhisattwa Majumder, Anuj Gupta, Harshit Surana, 中山 光樹

Publisher Resources

ISBN: 9784814400096Other