pygamlastan.metadata¶
Parse and inspect SAML metadata. See the Metadata guide. Errors
raise pygamlastan.SamlMetadataError (or
pygamlastan.SamlXmlError for malformed XML).
- pygamlastan.metadata.parse_entity(xml: str) EntityDescriptor¶
Parse a single
<md:EntityDescriptor>document.
- pygamlastan.metadata.parse_entities(xml: str) list[EntityDescriptor]¶
Parse a
<md:EntitiesDescriptor>aggregate into its child entities.
- pygamlastan.metadata.validate_entity(entity: EntityDescriptor) None¶
Validate an entity against basic metadata requirements.
- class pygamlastan.metadata.EntityDescriptor¶
-
- valid_until¶
- single_sign_on_services() list[EndpointInfo]¶
IdP SingleSignOnService endpoints.
- assertion_consumer_services() list[EndpointInfo]¶
SP AssertionConsumerService endpoints (indexed).
- single_logout_services(role: str = 'idp') list[EndpointInfo]¶