Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 1.14 KB

README.md

File metadata and controls

34 lines (22 loc) · 1.14 KB

OAuth2 Single Sign-On Client Demo

A demo client utilising our OAuth2 Single Sign-On Client to show how to sign in using your own custom sign in form.

This is our SSO equivalent of Resource Owner Password Credentials so should only be used for your own applications. It is ideal during migration from direct authentication as providing that you assign your client to it’s users (at the SSO service) the use of the SSO service should be invisible to the end user.

If you would prefer to show your SSO service’s sign in form you can utilise the normal OAuth2 Authorization Code flow to sign in or use ClientLite.

Setup

Toggle Client and ClientLite demos by changing $usingLite in bootstrap.php.

Client

Add a client to the provider:

  • redirect_uri - callback.php
  • sso_auth_url - authenticate.php
  • sso_home_url - sign-in.php

ClientLite

Add a client to the provider:

  • sso_home_url - signed-out.php