Install#
Requirements#
- PHP 8.3 or newer (
^8.3). - The
simplexmlextension (ext-simplexml). - A PSR-18 HTTP client for the
cas,oauth2andoidcdrivers (andsamlwith a metadata URL): Guzzle or symfony/http-client. SESAME suggests one, it does not require one.
Install#
composer require waynestate/sesame
Verify#
The quickest proof that SESAME is active is a sign-in. In local development,
configure the fake driver (the Quick start walks
through it), then call:
$user = sesame_login();
Expected: when the login has not completed, SESAME sends the redirect to the
identity provider and stops the script; when the user is already signed in
and the request has no ticket, it returns the user. With the fake driver
that is the user your resolver made from the configured username, jdoe in
the Quick start.
Next steps#
- Quick start: a first sign-in, one step at a time.
- Which driver for my app?: pick the key for your door.
- Raw PHP and Laravel: the two ways to wire it in.