Ensured that the IDP entityId is grabbed from the Principal for the CDK API part. This will only work if the principal is a SAMLAuthenticatedPrincipal constructed by the SAMLAuthenticator in the SURFconext implementation of apis
https://jira.surfconext.nl/jira/browse/CDK-77