SAML 2.0 Integration

Single Sign-On via Okta as Identity Provider. The SP (this app) builds a signed AuthnRequest, redirects to Okta, and receives a signed XML assertion back via HTTP POST binding.

1
Build AuthnRequest
Server constructs a SAML AuthnRequest XML, deflates and base64-encodes it per the HTTP Redirect binding spec.
2
Redirect to IdP
Browser is redirected to the Okta SSO URL with the encoded AuthnRequest as a query parameter.
3
User authenticates
Okta presents the hosted Sign-In Widget. User enters credentials or uses MFA.
4
Assertion POSTed
Okta HTTP-POSTs a base64-encoded SAML Response XML to the ACS endpoint (/api/saml/acs).
5
Assertion parsed
Server decodes and parses the XML, extracts NameID and attribute statements, stores them in a session cookie.
6
Attributes displayed
Browser is redirected to /saml where the decoded assertion attributes are shown.
HTTP POST binding: Okta POSTs the signed assertion to /api/saml/acs. The assertion XML is parsed server-side — no assertion data is ever exposed in the browser URL or source.
Sign In with Okta (SAML SSO)

Redirects via Okta hosted login — assertion delivered via HTTP POST