* Loghin Tivig <
tiv...@gmail.com> [2013-10-22 15:31]:
> The scenario is: a user goes to my login page and type in a username and
> password then he/she is redirected to the home page. From there I want the
> user to have access to his/hers Google Apps (Gmail, Drive, Groups, Sites)
> without being necessary to login into Google. On my system I use MySql to
> store the users, not AD or LDAP.
To send the subject to Google Apps from some resource you control
you'll need to use the IdP-initiated flow:
http://simplesamlphp.org/docs/stable/simplesamlphp-idp-more#section_4
Obviously this will only work if you've already installed and
configured SimpleSAMLphp (and your SAML SP, in this case Google Apps)
to work with the SP-initiated.
So if you can access Google Apps and get redirected to your
SimplSAMLphp IdP, authenticate at your IdP (using an sqlauth
authsource) and get sent back to Google Apps with a SAML assertion
carrying the required NameID in the assertion's subject, and you're
logged in fine there, yes, that's all you need to do.
If not everything of the above already works, do that now.
-peter