GithubHelp home page GithubHelp logo

thameera / saml-mock Goto Github PK

View Code? Open in Web Editor NEW
8.0 5.0 2.0 297 KB

SAML Mock IdP and SP

Home Page: saml-mock.vercel.app

License: MIT License

Shell 0.06% JavaScript 96.35% CSS 1.22% HTML 2.36%

saml-mock's Introduction

SAML Mock SP and IdP

Live version at: https://samlmock.dev

Using the mock IdP

SP Configuration

  • Certificate: Can be downloaded from the top-left button at https://samlmock.dev/idp
  • Sign-in URL: Set this to https://samlmock.dev/idp?aud=SP_AUDIENCE&acs_url=SP_ACS_URL. Replace SP_AUDIENCE and SP_ACS_URL correctly.

Example: https://samlmock.dev/idp?aud=urn:auth0:tham:mock-saml&acs_url=https://tham.auth0.com/login/callback

Doing a SAML flow

  1. Initiate a login from the SP.
  2. When the Mock IdP screen appears, change any variables as necessary.
  3. Click Submit button on top-right. The app will send a SAML response to the SP.

Running locally

npm i
npm run dev

App will be available at http://localhost:3333.

Inspirations and reference

saml-mock's People

Contributors

thameera avatar

Stargazers

thr3a avatar Boris Smirnov avatar Sarah Lewis avatar j0t4 avatar Ismael Herreras avatar Udo Bretz avatar Saltuk Alakus avatar

Watchers

 avatar James Cloos avatar  avatar Ismael Herreras avatar  avatar

saml-mock's Issues

Nonce error when using with Firebase Authentication

This tool seems to be incompatible with Firebase Authentication for some reason. When attempting to login with saml-mock as an IdP, Firebase rejects the SAML Response with the error Duplicate credential received. Please try again with a new credential. (auth/missing-or-invalid-nonce).

I've configured saml-mock as a Custom SAML provider in Firebase, though I'm not sure if I just misconfigured things. If there's interest in getting this to work with Firebase, I can try to provide more details and steps to reproduce.

Running the project as September 2023

Advice on running this project nowadays...

Hi , trying to run this project npm i I get a lot of errors and warnings of deprecated packages.... It doesn't compile.

Then I tried npm i --force --> It doesn't work. Run time error not found codemirror css files.

Found here a solution -->

npm i codemirror@version5 --force --save --> now it works.

Thanks for this project, it helps me a lot understanding saml

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.