< Sample Main Page

### Introduction

There are two samples in this directory: useCaseDemo and sae.

- useCasedemo is a sample that illustrates the following SAMLv2 use cases in a circle of trust having one Identity Provider(IDP, title shown as GreatAir in sample pages,) and one Service Provider(SP, title shown as BestCars in sample pages).
  - IDP initiated Single Sign On
  - SP initiated Single Sign On
  - IDP initiated Single Log out
  - SP initiated Single Log out
  - IDP initiated Federation
  - SP initiated Federation
  - IDP initiated Federation Termination
  - SP initiated Federation Termination
- sae is a sample that illustrates the general use cases of Secure Attribute Exchange (SAE).

### Setup

To run and test the sample

- You need two OpenSSO instances , with one instance configured as SAMLv2 Identity Provider and another instance as SAMLv2 Service Provider.
- The meta data of Identity Provider should be registered with Hosted Service Provider as a remote Identity Provider .
- The meta data of Service Provider should be registered with Hosted Identity Provider as a remote Service Provider.
- Service Provider and Identity Provider should belong to the same circle of trust (COT)

You must run the Configurator for the two instances first before configuring this sample.

To configure this instance as an Identity Provider; click here.

To configure this instance as a Service Provider, click here.

### Demonstration

To try out the SAMLv2 use cases follow the Readme
To furthur setup and try out the SAE use cases follow the Readme