systemprompt_identifiers/sso.rs
1//! Single sign-on identifiers.
2//!
3//! [`SsoRequestId`] is the protocol request id a provider correlates between
4//! `start` and `finish` (the SAML `AuthnRequest` id). [`SsoAssertionId`] is
5//! the id the identity provider stamps on the assertion it returns, and
6//! [`IdpTenantId`] the identity provider's own tenant, which is not a
7//! systemprompt [`crate::TenantId`].
8//!
9//! Copyright (c) systemprompt.io — Business Source License 1.1.
10//! See <https://systemprompt.io> for licensing details.
11
12crate::define_id!(SsoRequestId, checked, |value| {
13 crate::macros::validate_non_empty("SsoRequestId", value)
14});
15crate::define_id!(SsoAssertionId, checked, |value| {
16 crate::macros::validate_non_empty("SsoAssertionId", value)
17});
18crate::define_id!(IdpTenantId, checked, |value| {
19 crate::macros::validate_non_empty("IdpTenantId", value)
20});