pub struct ExternalLoginsSamlTestResource<'a> { /* private fields */ }Expand description
client.external_logins().saml().test()
Implementations§
Source§impl<'a> ExternalLoginsSamlTestResource<'a>
impl<'a> ExternalLoginsSamlTestResource<'a>
Sourcepub fn create(
&self,
external_login_id: impl Display,
) -> Result<ExternalLoginSamlTestStart>
pub fn create( &self, external_login_id: impl Display, ) -> Result<ExternalLoginSamlTestStart>
Start SAML login test
POST /externallogins/{externalLoginId}/saml/test
Starts a SAML round-trip test for the stored provider configuration. Requires “churchcore administer settings” permission; hidden SAML providers can be tested. Open data.url in the same browser session, then poll using data.state. At most five tests are retained per session; older entries are evicted. Tests and completed results expire 600 seconds after creation. The callback validates the SAML response and returns claim-name/mapping diagnostics without creating or linking a ChurchTools person or establishing a new ChurchTools login. A successful test does not guarantee that required identity attributes have usable values or that person matching would succeed. Configuration/URL-generation failures are not converted into an error result by this endpoint.
§Example
let result = client.external_logins().saml().test().create(7)?;
println!("{}", result.expires_at);Sourcepub fn get(
&self,
external_login_id: impl Display,
state: impl Display,
) -> Result<ExternalLoginSamlTestResult>
pub fn get( &self, external_login_id: impl Display, state: impl Display, ) -> Result<ExternalLoginSamlTestResult>
Get SAML login test result
GET /externallogins/{externalLoginId}/saml/test/{state}
Polls a SAML test for the current administrator, provider and browser session. Requires “churchcore administer settings” permission; hidden SAML providers are allowed. An unknown state, another administrator/provider/session, an evicted test, or a test older than 600 seconds returns status=expired with HTTP 200. Success returns attribute names and all five mapping-presence checks; error returns only its status. Reads do not consume completed results. Provider lookup and SAML configuration are checked again, so deleting the provider or breaking its settings can prevent polling an existing result.
§Example
let test = client.external_logins().saml().test().get(7, "beispiel")?;
println!("{}", test.status);