Hi @Anveeg Sinha ,
Like you mentioned, you need to register your application as a SAML application in B2C. The steps for registering a SAML application in B2C are documented in Register a SAML application in Azure AD B2C. You need to create a custom policy to define how users interact with your application and connect your SAML application to B2C.
You can access the policy metadata XML here:
https://<tenant-name>.b2clogin.com/<tenant-name>.onmicrosoft.com/<policy-name>/samlp/metadata
The RelayState parameter is optional. If you needed to included it you would add it in the URL parameter like this example for IdP-initiated flow for sign in or sign up:
https://<tenant-name>.b2clogin.com/<tenant-name>.onmicrosoft.com/<policy-name>/generic/login?EntityId=<app-identifier-uri>&RelayState=<relay-state>
You would replace the relay-state parameter with a value included in the authorization request that also is returned in the token response (which should come from the service providers), such as the page the user was on before the authentication request occurred.
The sign-on URL the SAML App is the destination in SAML request. Examples here:
https://medium.com/the-new-control-plane/idpinitiated-sign-on-with-azure-ad-73e252c9c370
Let me know if this helps and if you have further questions.
If the information helped you, please Accept the answer. This will help us as well as others in the community who may be researching similar questions.