Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guide for distributed authentication and logged out cookie caches. #849

Open
jvanhill opened this issue Oct 14, 2022 · 0 comments
Open

Guide for distributed authentication and logged out cookie caches. #849

jvanhill opened this issue Oct 14, 2022 · 0 comments

Comments

@jvanhill
Copy link

jvanhill commented Oct 14, 2022

We should have a guide for working with the distributed authentication and logged out cookie caches.

They may be similar to the HttpSession cache guide here: https://openliberty.io/guides/sessions.html

The guide should:

  • Configure two Liberty servers to connect to the same cache.
  • Start an Infinispan server in a docker container.
  • Start the two Liberty servers. This will create the two caches. Verify in the Infinispan console.
  • Login to server1 save the LTPA cookie.
  • Use the LTPA cookie to access a resource on server1.
  • Use the LTPA cookie to access a resource on server2. Verify the cache hits/misses to the authentication cache on the Infinisipan console.
  • Logout using the LTPA cookie on server1.
  • Use the logged out LTPA cookie to access a resource on server1. The response should be a redirect to the login page.
  • Use the logged out LTPA cookie to access a resource on server2. The response should be a redirect to the login page. This indicates that the JCache was used when checking the logged out cookies since we logged out on the other server. The logged out cookie cache hit/miss statistics can be checked in the Infinispan console to verify.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants