Did you check out the docs on the SAML module: https://docs.mendix.com/appstore/modules/saml
If so, what exactly is it that you are struggling with?