Agent Guides › SAML Affiliate Agent Guide › Extend a SAML Affiliate Agent › Persistence API › Sequence of Events
Sequence of Events
The following events occur when a persistence library is used to perform custom assertion management:
- A user makes an initial request for a resource at the consumer site.
- The SAML Affiliate Agent pulls the raw XML assertion data from the producer, and then passes the unparsed XML assertion to the persistence library in a call to PersistAssertion().
- Only profile information is sent. The SAML Affiliate Agent has removed the security information.
- The persistence library parses the assertion into entitlement name/value pairs and stores the entitlement data.
- The library also sends a lookup key to the Affiliate Agent in the output parameter of PersistAssertion(). Applications use the lookup key to retrieve the entitlement data.
- When the user makes resource requests during the session, the SAML Affiliate Agent sends the lookup key to the requesting application in an SMPERSISTENCEKEY HTTP header.
- The application uses the key to retrieve the entitlement data that the library has extracted from the assertion and stored.