# Regarding docs, sessions and cache

**URL:** <https://forum.keycloak.org/t/regarding-docs-sessions-and-cache/15236>\
**Category:** Miscellanaeous\
**Tags:** authentication, saml\
**Created:** [April 28, 2022, 7:04pm UTC](https://forum.keycloak.org/t/regarding-docs-sessions-and-cache/15236 "2022-04-28T19:04:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sma1](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@sma1](https://forum.keycloak.org/u/sma1)\
**Post date:** [April 28, 2022, 7:04pm UTC](https://forum.keycloak.org/t/regarding-docs-sessions-and-cache/15236/1 "2022-04-28T19:04:57Z")

</div>

Hi, I have a couple of questions. I would appreciate your help. I am planning to use Keycloak Quarkus

1. I want to create a custom authentication SPI. Although the doc walk you trough, I don’t find any documentation explaining what java objects I have access to and their intention. Where could I find it?

2. I have a specific use case for some users where a main IDP will delegate authentication to Keycloak. Once the user is authenticated, Keycloak will create a SAML assertion and send the data to this IDP. The main IDP will handle the sessions and thus I don’t want to keep alive sessions in Keycloak. Is there a way to log in users and don’t create a session? Or a workaround to this?

3. In the docs of Keycloak Quarkus I didn’t find anything regarding distributed cross-site cache. I might not use Kubernetes. I might deploy in different availability zones using EC2. So how can I achieve this?

Thanks for your help!
