<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello there!"<br>
    <br>
    I have an application that has protected resources on the pattern
    "/protected/*" and I receive a session cookie for the path
    "/protected", which makes sense. Now my problem is, that I want the
    path of the cookie to be "/" so I can access the user information
    even outside of the protected resources.<br>
    Since I think this might introduce some problems, the only other way
    to realize that I could think of is, to get access to the underlying
    servlet session. Not only would that session have to be created
    properly, which I am not sure is happening when browsing in the
    protected resources, I would also need to access it on the server,
    so that I can save the currently logged in user into it.<br>
    <br>
    Is there a possibility to access the servlet session within the
    Keycloak context? If so, could you please share some code or point
    me to an API?<br>
    <div class="moz-signature">-- <br>
      <br>
      Mit freundlichen Grüßen,<br>
      <hr>
      <b>Christian Beikov</b><br>
    </div>
  </body>
</html>