- dana.reyes@example.org
- Groups
- customers
- Roles
- viewer
"amr": ["fed"]
php-sso is an OpenID Connect provider written in PHP. It signs your people in, asks for a second factor, lets staff of other companies in through SAML, and tells your apps who they are. It needs one container and no other services.
"amr": ["fed"]
"amr": ["fed"]
"amr": ["pwd", "otp", "mfa"]
All of this is built and managed from the admin panel.
php-sso asks different things of different people. Try your own team, then a company address, and switch on the second step. What your app receives changes with how the person signed in.
Use alice@example.com to be asked for a password, or sam@acme.com to be sent to a company's identity provider.
A simulation in your browser. Nothing is sent anywhere, and the claims are an example, not a signed token.
Point any OpenID Connect library at the discovery address and register the app in the admin panel. There is no SDK to install.
The ID token says who signed in and how: sub, email, groups, roles, auth_time and amr. An app that needs a second factor checks that amr contains mfa.
Each app lists the scopes it may ask for. Signing out of one app can end the session in the others.
https://sso.example.comhttps://sso.example.com/.well-known/openid-configurationS256), required for every appopenid profile email groups roles, and any you addA customer or partner signs in with their own identity provider. You add the connection and the email domains it speaks for. Their system can also keep the list of people up to date, so someone who leaves the company is out of your apps too.
php-sso is young: the application is at version 0.1 and the libraries it is built on are at 1.0. It is open source under the MIT license. It has hundreds of automated tests and ships as a production Docker image, but it has not had an independent security review, so treat it that way. SAML and SCIM have been tested against simulated providers, not yet against Okta or Entra.
How to install, configure and run php-sso is in its own documentation, which lives with the code. The three libraries it is built on each have theirs, and you can use them in your own PHP applications. All four are open source under the MIT license.
composer require php-sso/oauth-servercomposer require php-sso/scim-servercomposer require php-sso/saml