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を利用したモダンアプリケーションのセキュリティー保護

12章トークンとセッションの管理

 Keycloakは、中央集権型の認証・認可サービスとして機能するだけでなく、セッションとトークンの管理システムとしても機能します。

 認証処理の一部として、Keycloakは、サーバーサイドのセッションを作成し、それをトークンと関連づけます。このセッションにより、Keycloakは、セッションが生成された認証コンテキストの状態を維持したり、ユーザーやクライアントの活動を追跡したりすることができます。また、トークンの有効性をチェックしたり、ユーザーやクライアントをいつ再認証すべきかを決定したりすることもできます。

 本章では、Keycloakでトークンとそのベースとなるセッションをどのように管理するかを見ていき、その際に注意すべきさまざまな点を理解します。

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

  • セッションの管理
  • トークンの管理

12.1 技術要件

 本章では、Keycloakの管理コンソールを使用して、例に従って操作していきます。そのため、1章「Keycloakを始めよう」を参考に、Keycloakが起動していることを確認してください。

12.2 セッションの管理

 セッションの管理は、ユーザー体験、セキュリティー、性能など、いくつかの重要な面に直接影響を与えます。

 ユーザー体験の面では、Keycloakは、ユーザーやクライアントが認証されているかどうか、どのくらいの期間認証状態を維持すべきか、いつ再認証するかを決定するためにセッションを活用します。セッションにより、ユーザーが同じレルム内の異なるクライアントにログインする際に、シングルサインオン(Single Sign-On:SSO)体験や統一された認証体験を提供することができます。 ...

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