Add SAML IdP
Add a SAML identity provider (IdP) to an endpoint, from its metadata: a URL ngris reads now and again every day, or the metadata pasted. It is on at once: your sign-in page shows Continue with <name> while sign-in with single sign-on is on ("mode": "sso"). First enter ngris's values in the IdP, and check its metadata if you like. In the dashboard: Add provider, then SAML, under Single sign-on in Sign-in & access › Sign-in.
Needs the endpoint_saml feature on the plan of the account that owns the endpoint (Enterprise) and the endpoints:write permission. Strict JSON decoding: unknown body fields return 400.
Path parameters
uuid from /endpoints.An integer id in the path is refused with 400 integer_id_unsupported (see public IDs). Use the uuid.
Request body
metadata_xml, not both.anyone: anyone the IdP signs in joins at once, without the limit of 20 new users an hour (with sign-ups off, nobody joins). follow: joining follows the endpoint's sign-up settings, as for any single sign-on. The endpoint's email domain lists apply to both.["acme.com"]: only domains it manages. An answer whose email has another domain is refused, at every sign-in, and a user already on the endpoint with one of these emails (added or invited by you, active, with no other sign-in link) is connected to the IdP at their first sign-in. Matched exactly, so list a subdomain on its own. At most 100. Left out: any, and nobody is connected by email.email, name and groups.[{"group": "shop-admins", "role_uuid": "019b4b9d-d300-736b-8601-153b3d9f70aa"}], up to 100 rules, each role_uuid one of this endpoint's roles. At every sign-in a user gets each rule's role whose group is in the answer, exactly, letter case included, and loses the roles these rules gave that no group gives any more. Roles you give by hand stay.true when the IdP asks a second step of everyone who signs in with it: its sign-ins then skip the endpoint's second step. Only set it if it really does: ngris can't check. Default false.Response (201 Created)
The IdP, as Get SAML IdP answers it: what ngris read from the metadata (entity_id, sso_url, certificates, want_requests_signed) and, in sp, its start link and ngris's metadata for it.
Errors
name, join_mode, email_domains, an attribute name, a rule's group or role_uuid); both metadata sources, or neither; or metadata ngris can't use, with why: a URL that isn't https, isn't public, redirects or doesn't answer, metadata over 1 MiB or with a document type declaration, a document that isn't SAML metadata or doesn't describe exactly one IdP with a signing certificate, an IdP that takes sign-in requests by POST only, or certificates that are all past their end date.endpoints:write permission, or the plan doesn't include SAML single sign-on ("code": "entitlement_required", "entitlement_required": "endpoint_saml").a group rule names a role this endpoint doesn't have).The request is too large: paste at most 1 MiB of metadata, or give its URL.SAML single sign-on isn't available yet. Try again in a few minutes.