2022-02-23 13:57:26 +00:00
# Mock SAML from BoxyHQ
2022-02-23 15:22:50 +00:00
2022-02-28 21:54:20 +00:00
[](https://heroku.com/deploy)
2022-03-01 12:48:27 +00:00
[](< https: // vercel . com / new / clone ? repository-url = https%3A%2F%2Fgithub.com%2Fboxyhq%2Fmock-saml&env=APP_URL,ENTITY_ID,PUBLIC_KEY,PRIVATE_KEY,NEXT_PUBLIC_GTM_ID&envDescription=APP_URL%20(Usually%20https%3A%2F%2F%3Cproject-name%3E.vercel.app)%20can%20be%20set%20after%20deployment%20from%20the%20project%20dashboard.%20Set%20to%20''%20if%20not%20applicable.&envLink=https%3A%2F%2Fgithub.com%2Fboxyhq%2Fmock-saml%2Fblob%2Fmain%2F.env.example&project-name=mock-saml > )
2022-02-28 21:54:20 +00:00
2022-03-02 20:53:00 +00:00
Mock SAML is a free SAML 2.0 Identity Provider for testing SAML SSO integrations.
2022-02-23 15:37:55 +00:00
2022-02-28 22:58:45 +00:00
Try [Mock SAML ](https://mocksaml.com/ ), our free hosted service.
2022-02-28 06:41:59 +00:00
2022-03-04 20:52:47 +00:00
## Source code visualizer
[CodeSee codebase visualizer ](https://app.codesee.io/maps/public/893e0610-9bfc-11ec-980d-9f320f34189e )
2022-02-23 15:37:55 +00:00
## Install
2022-02-23 15:22:50 +00:00
2022-03-17 01:44:33 +00:00
### With Docker
The docker container can be found at [boxyhq/mock-saml ](https://hub.docker.com/r/boxyhq/mock-saml ).
```bash
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
2022-02-23 15:22:50 +00:00
```
git clone https://github.com/boxyhq/mock-saml.git
```
```
cd mock-saml
```
2022-02-28 06:34:57 +00:00
Install dependencies
2022-02-23 15:22:50 +00:00
```
npm install
```
2022-02-28 06:34:57 +00:00
Update `.env` with your own keys.
2022-02-23 15:22:50 +00:00
```
cp .env.example .env
```
2022-02-28 06:34:57 +00:00
Build the Next.js app.
2022-02-23 15:22:50 +00:00
```
npm run build
```
2022-02-28 06:34:57 +00:00
Run the Mock SAML server.
2022-02-23 15:22:50 +00:00
```
npm run start
```