SAML Identity Provider (IdP) is the trusted authority that authenticates users and issues signed SAML assertions to Service Providers. Common IdPs include Okta, Azure AD, OneLogin, and ADFS.
// User logs into IdP portal
POST /login
username=user&password=secret
// User clicks on application tile
// IdP generates assertion without prior SP request
POST https://sp.example.com/saml/acs
SAMLResponse=PHNhbWxwOlJlc3Bvb...
<saml:Assertion>
<saml:Issuer>https://idp.example.com</saml:Issuer>
<ds:Signature>
<!-- Signed with IdP's private key -->
</ds:Signature>
<saml:Subject>
<saml:NameID Format="emailAddress">
user@example.com
</saml:NameID>
</saml:Subject>
<saml:AttributeStatement>
<saml:Attribute Name="role">
<saml:AttributeValue>admin</saml:AttributeValue>
</saml:Attribute>
</saml:AttributeStatement>
</saml:Assertion>