Using the sample applications
Importing the PingFederate configuration archive
The included configuration archive creates all required adapter instances and connections in PingFederate.
-
Sign on to the PingFederate admin console.
-
Go to System > Server Configuration > Configuration Archive.
-
Click Import and select the
sample/data.zipfile. -
Confirm the import.
|
Importing the archive overwrites your entire PingFederate configuration. Use a fresh installation or back up your existing configuration before importing. Learn more in Exporting an archive in the PingFederate documentation. |
Running the sample applications
Building and running the applications from source
IdP sample application endpoints
| Parameter | Method | Description |
|---|---|---|
|
GET, POST |
Landing page. Shows authenticated user’s attributes and buttons to start SSO or SLO. |
|
GET, POST |
Local login form. Authenticates user credentials against |
|
GET, POST |
SLO handler. Clears the local session and redirects to PingFederate SLO resume path. |
|
GET |
Clears local session and OpenToken cookie only. Doesn’t trigger PingFederate SLO. |
|
GET, POST |
Runtime configuration editor for PingFederate base URL, SP connections, and adapter instance names. |
SP sample application endpoints
| Parameter | Method | Description |
|---|---|---|
|
GET, POST |
Landing page. Shows attributes received from the OpenToken and buttons to start SSO or SLO. |
|
GET, POST |
Reads and validates the OpenToken from PingFederate. On success, calls |
|
GET |
Account linking flow for associating an incoming federated identity with a local user account. |
|
GET, POST |
SLO handler. Clears the local session and redirects to PingFederate SLO resume path. |
|
GET |
Ends the local session and removes the SP OpenToken cookie without initiating a PingFederate SLO. |
|
GET, POST |
Runtime configuration editor for PingFederate base URL, IdP connections, and adapter instance names. |
Test users
IdP application
Located in IdpSample/wwwroot/config/idp_users.json. Used at the IdP application’s /Login endpoint during SSO flows.
| Username | Password | Role | |
|---|---|---|---|
joe |
test |
joe@example.com |
admin |
sarah |
test |
sarah@example.com |
viewer |
idp |
test |
idp@example.com |
N/A |
SP application
Located in SpSample/wwwroot/config/sp_users.json. Used at the SP application’s /AccountLinking endpoint during account linking flows. These credentials are only required when the SP OpenToken Adapter is configured to use account linking.
| Username | Password | Role | |
|---|---|---|---|
joe |
test |
joe@example.com |
admin |
sarah |
test |
sarah@example.com |
user |
idp |
test |
idp@example.com |
user |