Setting up a Default Relay State for IdP Initiated - SAML Logins
Add a default landing url for users logging in through SSO
Go to Setting up a Default Relay State for IdP Initiated - SAML LoginsExpands upon our general SAML setup guide to configure and enable SSO authentication in your Sanity instance using the SAML protocol and PingIdentity (Cloud) as an identity provider (IdP)
During the setup and configuration process, it's a good idea to keep two windows side by side:
Go to Sanity Manage and select the organization you want to enable SSO for your organization.
To navigate to the service provider configuration inside Sanity Manage:
You will need to configure the attributes sent to Sanity from Ping Identity, several are required including: email, firstName, and lastName. these can be found within the SSO setting from the Getting Ready step.
Attributes are case sensitive and if not inputted correctly may service as a 422 error.
Enterprise customers can map user identity provider roles to service provider roles. For example, users with a Ping Identity example-admin-user-role
role are mapped to the Sanity viewer
role when they log in.
Now that you have set up everything in Ping, you can now upload your certification and update the configuration on the Sanity side.
Ensure you save all changes inside Sanity Manage and Ping Identity
{"statusCode":422,"error":"Unprocessable Entity","message":"child \"attributes\" fails because [\"value\" must contain at least one of ...
{ "id": "3431pXO", "displayName": "Sanity Support", "email": "sanity@sanity.io", "familyName": "Sanity Support", "givenName": "Sanity", "middleName": null, "imageUrl": null, "provider": "saml-f6a94", "tosAcceptedAt": "2024-11-20T18:51:57.264Z", "createdAt": "2024-11-20T18:51:57.264Z", "updatedAt": "2024-11-20T18:51:57.535Z", "isCurrentUser": true, "providerId": "49jc94jf949930304jkojfciojlj934003490943" }
Sanity Composable Content Cloud is the headless CMS that gives you (and your team) a content backend to drive websites and applications with modern tooling. It offers a real-time editing environment for content creators that’s easy to configure but designed to be customized with JavaScript and React when needed. With the hosted document store, you query content freely and easily integrate with any framework or data source to distribute and enrich content.
Sanity scales from weekend projects to enterprise needs and is used by companies like Puma, AT&T, Burger King, Tata, and Figma.
Add a default landing url for users logging in through SSO
Go to Setting up a Default Relay State for IdP Initiated - SAML LoginsImplement single sign-on authentication with the SAML protocol and Microsoft Azure AD/ Entra ID as the identity provider.
Go to Set up SSO authentication with SAML and Azure/Entra ID