IAM and SSO ยท 14 due
SAML 2.0 predicted recall 50%

What are SAML assertions and what are the three main types of statements they contain?

<saml:Assertion ID="_a75ad..." Version="2.0"> <saml:AuthnStatement AuthnInstant="2024-01-15T10:30:00Z"> <saml:AuthnContext> <saml:AuthnContextClassRef>urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport</saml:AuthnContextClassRef> </saml:AuthnContext> </saml:AuthnStatement> <saml:AttributeStatement> <saml:Attribute Name="email"> <saml:AttributeValue>jane@example.com</saml:AttributeValue> </saml:Attribute> </saml:AttributeStatement> </saml:Assertion>
Answer

A SAML assertion is the XML document issued by the IdP to the SP containing the user's identity information. It contains three types of statements: 1) Authentication statements - confirming the user authenticated at a specific time with a specific method (password, MFA, etc.). 2) Attribute statements - containing user properties like email, department, role that the SP needs for authorization. 3) Authorization decision statements - less common, stating whether the user is permitted to access a specific resource (though SPs typically make their own authorization decisions). Assertions are digitally signed by the IdP and may be encrypted for confidentiality.

How did you do?