Git Product home page Git Product logo

iis-mock-sso's Introduction

iis-mock-sso

Simple node app to stand in for an oauth2 SSO server

Configuration

Edit server.js if need to change

  • port - defaults to 3001
  • IIS web app port - defaults to 3000
  • Specify user profile to return

Create user profile in /users. If you wanted, you could create multiple profiles and modify the SSO view to allow selection of a user.

Start Server

  • npm install
  • npm start

Or, if you want interactive login mode, use

  • INTERACTIVE=true npm start

Operation

This is a very basic standin for an oauth2 SSO server.

You must configure your app to use the following paths, assuming the default port of 3001:

The user profile includes links for signo out and profile management, which are:

When your app initiates authentication the first call will be to /oauth/authorize.

When using INTERACTIVE mode, this will cause the 'sso' view to be rendered. On this page you can select whether or not to authorize the user.

In automatic / non-interactive mode, authorization will succeed.

'Unauthorised' causes a 401 response. When 'Authorised', your application's redirect URL will be called with a dummy authentication code. Your app should then call /oauth/token and optionally /api/user_details to retrieve the profile.

iis-mock-sso's People

Contributors

atodd-noms avatar glenjamin avatar mattops avatar psoleckimoj avatar

Watchers

 avatar  avatar  avatar  avatar

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.