I am developing a sample React-Node application that implements SSO (Single Sign-On) using SAML for Hubspot with Azure AD as the identity provider (IDP). When the user clicks on a button in the React app, an API in the Node.js backend should be called to initiate the SSO process. This involves sending a SAML request to Azure AD, receiving and verifying the SAML response, and then redirecting the user to Hubspot with SSO already performed. The goal is to allow users to seamlessly access Hubspot without having to perform additional SSO steps.
I looked into various methods, and they need either a metadata file or private key to do the SSO in backend. I am unable to find the same. Can you guys point me in the right direction