You can conduct transient sessions in Keycloak. When using transient sessions, Keycloak does not create a user session after successful authentication. Keycloak creates a temporary, transient session for the scope of the current request that successfully authenticates the user. Keycloak can run protocol mappers using transient sessions after authentication.
During transient sessions, the client application cannot refresh tokens, introspect tokens, or validate a specific session. Sometimes these actions are unnecessary, so you can avoid the additional resource use of persisting user sessions. This session saves performance, memory, and network communication (in cluster and cross-data center environments) resources.
Question: Ok, the documentation describes what is a transient session, but how do I enable transient sessions in Keycloak for a given client ?
Can the client asking for a token specify through the API call that it wants a transient session (in case he does not need to later call refresh, introspection or validation endpoints) ?