A simple mock SAML 2.0 Identity Provider
* Use boxyhq/saml20 * use sign from saml20 * cleaned up GetKeyInfo * cleaned up getPublicKeyPemFromCertificate * cleaned up node-forge * use hasValidSignature from saml20 * cleanup and update saml20 to the beta version * throw an error if signature is not valid * updated saml20 |
||
|---|---|---|
| .github/workflows | ||
| .vscode | ||
| components | ||
| lib | ||
| pages | ||
| public | ||
| styles | ||
| types | ||
| utils | ||
| .dockerignore | ||
| .env.example | ||
| .eslintrc.json | ||
| .gitignore | ||
| .prettierrc.js | ||
| app.json | ||
| Dockerfile | ||
| LICENSE | ||
| next-env.d.ts | ||
| next.config.js | ||
| package-lock.json | ||
| package.json | ||
| postcss.config.js | ||
| Procfile | ||
| README.md | ||
| tailwind.config.js | ||
| tsconfig.json | ||
Mock SAML from BoxyHQ
Mock SAML is a free SAML 2.0 Identity Provider for testing SAML SSO integrations.
Try Mock SAML, our free hosted service.
Source code visualizer
Install
With Docker
The docker container can be found at boxyhq/mock-saml.
docker run \
-p 4000:4000 \
-e APP_URL="http://localhost:4000" \
-e ENTITY_ID="https://saml.example.com/entityid" \
-e PUBLIC_KEY="<PUBLIC_KEY>" \
-e PRIVATE_KEY="<PRIVATE_KEY>" \
-d boxyhq/mock-saml
Replace <PUBLIC_KEY> with Base64 encoded value of public key.
Replace <PRIVATE_KEY> with Base64 encoded value of private key.
Without Docker
git clone https://github.com/boxyhq/mock-saml.git
cd mock-saml
Install dependencies
npm install
Update .env with your own keys.
cp .env.example .env
Build the Next.js app.
npm run build
Run the Mock SAML server.
npm run start