title: Shibboleth SP - Reading assertion attributes from Java
body: <p>I understand that configured attributes will be stored as environment variables by default and will be accessible like</p>
  
  <pre><code>request.getAttribute("Shib-Identity-Provider")
  </code></pre>
  
  <p>I tried that and after some googling I understood that to access them in Java through AJP.</p>
  
  <p>I need to prefix this</p>
  
  <pre><code>&lt;ApplicationDefaults id="default" policyId="default"
      entityID="https://idp.example.org"
      REMOTE_USER="eppn persistent-id targeted-id"
      signing="false" encryption="false" attributePrefix="AJP_"&gt;
  </code></pre>
  
  <p>I did that but I still keep getting null in my Java application</p>
  
  <ul>
  <li>Shib-Identity-Provider - null</li>
  <li>Shib-Session-ID - null</li>
  <li>Shib-Application-ID - null</li>
  </ul>
  
  <p>Could someone help me figure out what I am missing to make it work?</p>