Skip to content

Add SAML 2.0 apps to the Okta emulator - #393

Open
ctate wants to merge 5 commits into
mainfrom
ctate/add-saml-2-91a834
Open

ctate wants to merge 5 commits into
mainfrom
ctate/add-saml-2-91a834

Conversation

@ctate

@ctate ctate commented Nov 13, 2026

Copy link
Copy Markdown
Collaborator
  • Make SAML_2_0 apps a working SAML identity provider. This covers the SSO URL with the HTTP-Redirect and HTTP-POST bindings and IdP-initiated sign-in, metadata at the app URL and on the Apps API, and assertions built and signed as settings.signOn says. Unassigned or inactive users and deactivated apps get no assertion, and an app that signs nothing gets E0000001.
  • Add a @emulators/core/saml entry point with IdP and SP helpers (metadata, signing, AuthnRequest bindings, and response verification that resists signature wrapping), so the GitHub, Slack and Google SAML service providers can share it.
  • Add an Okta agent skill and docs. Fixes Okta: SAML 2.0 apps #380. Closes Add SAML 2.0 apps to the Okta emulator #381, feat(okta): add SKILL.md for Okta emulator #58.

@vercel

vercel Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
emulate Ready Ready Preview, v0 Nov 15, 2026 6:06am UTC

@socket-security

socket-security Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​@​xmldom/​xmldom@​0.9.1210010010084100
Addednpm/​xml-crypto@​6.4.010010010096100

View full report

@vercel-internal-security-reviewer

Copy link
Copy Markdown

Security review details

@Railly Railly left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, one small nit

Comment thread README.md
Comment on lines +567 to +574
apps:
- name: portal_saml
label: Portal
sign_on_mode: SAML_2_0
settings:
signOn:
ssoAcsUrl: http://localhost:3000/saml/acs
audience: https://portal.example.com

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this example seeds a saml app with no assignments, so every user who signs in gets the 403 app not assigned page. give the user and the app an okta_id and add app_assignments, like the docs example; the same block sits in skills/emulate/SKILL.md.

repro: npx emulate start --service okta --seed <the readme okta block> then curl -X POST $OKTA_URL/app/portal_saml/<exk>/sso/saml/callback -d user_ref=<each seeded user id> -> 403 "App Not Assigned" for every user, no SAMLResponse

This branch was successfully deployed

1 active deployment
Preview — 01646d63 Deployed Nov 15, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Okta: SAML 2.0 apps

2 participants