* Steve Briggs <
st...@wowpages.com> [2016-09-05 18:38]:
> Yes - thanks Peter, I understand, and I appreciate your earlier comments,
> which have convinced me to follow your advice about moving the application
> sign on to the IdP.
While that's recommended (and what Jaime has been saying all along)
that's not what I said when trying to answer your literal question:
That was about how to properly bootstrap an SSP session (as SAML IDP)
transparently from an existing application session, without credential
replay or other ugliness.
The provided example
./modules/exampleauth/lib/Auth/Source/External.php should be usable
for you with only minor modifications (grab the data from /somewhere/
-- maybe another session or data source -- and put it into an SSP
session and return), at least if you're certain no direct
(SP-initated) access to the "external" application happens or needs to
be supported.
If OTOH you intend to move the login UI (and password processing) from
the application to SSP then you'll can create your own theme (within
your own module) and implement whatever UI you want there, but using
SSP's built-in "themeing" API.
https://simplesamlphp.org/docs/stable/simplesamlphp-theming
First you'd succeed in turning your application into a SAML SP,
externalize authentication and implement attribute-based authorization
in the application. (Possibly everyone authenticating to the app so
far is also considered authorized. Going forward that may not be the
case when authentication is externalized.)
Cheers,
-peter