Search code examples
spring-saml

Mozilla not getting SAML context


I am using below code to get my credential, it is woking fine in IE, Why it is not working in mozilla.

SecurityContextImpl obj = (SecurityContextImpl) session
            .getAttribute("SPRING_SECURITY_CONTEXT");
SAMLCredential credential = (SAMLCredential) obj.getAuthentication()
            .getCredentials();

if any body has encounter situation like this. I am using Spring SAML


Solution

  • Resolved as responseSkew was I am using the default 60 below change helped

    <bean id="webSSOprofileConsumer" class="org.springframework.security.saml.websso.WebSSOProfileConsumerImpl"> <property name="responseSkew" value="600"/> <!-- 10 minutes --> </bean>