This article explains how to setup SSO with Google Apps from OpenSSO. The prerequisits are:
- You should have premium account from Google AppsThe premium account is needed since only it supports Single Sign On (SSO). While registerring make sure to enter the correct domain name where you have internet facing machine, since it will make sure you have full control of this domain by telling you to add random generated key to an html file.
- Grab latest OpenSSO and deploy, configure in the domain registered with Google Apps.
Now how to setup Google Apps from OpenSSO.
- Go to your OpenSSO instance and login as amadmin
- On Common task tab, click on "Create Hosted Identity Provider" to created hosted IDP and circle of trust (COT).
- On this page you can accept all default values.
- Enter COT name such as "COTGoogleApps"
- Enter signing cert alias. You can use "test" cert alias.
- Click on Configure.
- After successful creation of it, click on Finish to come back to Common Task Tab.
- Now create a user with the same name as the user created on Google Apps.
- Click on Access Control tab.
- Click on Top Level realm
- Click on Subjects.
- Now Click on New to create new user.
- Enter user id same as Google Apps user name.
- Enter other mandatory fields and click on Create
- Go back to Common Task tab. You can do this by click on "Back to Access Control" and then clicking on first tab "Common Task".
- Click on "Configure Google Apps".
- Make sure correct IDP and COT values are picked up.
- Enter the domain name you have registered with Google Apps
- Click on Create.
- After successful creation success message will be displayed. Click Ok on the dialoag box to retrive the data. This data should be entered on the Google Apps side.
- Now from other browser window, go to Google Apps. Login as a admin user for your domain.
- Click the Advanced Tools tab, and then click the Set up Single Sign-on (SSO) link
- Mark the Enable Single Sign-On checkbox.
- Copy the URLs from OpenSSO and paste them in the Google Apps setup screen. Copy the Verification Certificate text into a file, and upload the new text file to the Google Apps Verification Certificate.
- Save the changes in the Google Apps setup screen.
- Logout from Google Apps and the OpenSSO Console
How to test SSO between OpenSSO and Google Apps.
- Goto Google Apps Dashboard. Enter Domain name and select "Go to Email" from drop down box. Click Go.
- Now the Google Apps will redirect the user to OpenSSO login screen. Enter the user name which you created on OpenSSO side.
- After successful authentication, Gmail inbox will be loaded.
How about Logout?
- Logout link from Gmail page will logout sessions from Google side as well as from OpenSSO side. Thus OpenSSO login screen will be displayed.

