title: WSO2 Identity Server 5.1.0 not returning user claims in SAML Response
body: <p>While trying out the new version of WSO2 Identity Server 5.1.0 I'm having problems returning claims in the SAML response. While this worked in WSO2 IS 5.0.0 SP1. I've mapped the required claims and added them to my SP, also I configured the SP to always return the user attributes. </p>
  
  <p>I've configured the SP claim mapping:</p>
  
  <p><a href="https://i.stack.imgur.com/nD4e1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nD4e1.png" alt="SP Claim Config"></a></p>
  
  <p>My SAML configuration:</p>
  
  <p><a href="https://i.stack.imgur.com/A66zV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/A66zV.png" alt="enter image description here"></a></p>
  
  <p>Any help is greatly appreciated. I'm getting the feeling this might be a bug.</p>
  
  <p>EDIT: In WSO2 5.1.0 it is required to add the Attribute Consuming Service Index to the SAML Request. In WSO2 5.0.0 SP1 it worked even without setting this value in the SAML Request.</p>