## Complete Set Up

Setting up the full Google to Moodle intergration requires a bit of configuration. This help file should guide you through most of the process in getting the Google Authentication Plugin configured as well as the gdata block and the gmail block ready.

#### Table of contents:

- Preconditions
- Steps
- Expected Results
- Considerations

#### Google Apps Status

#### Preconditions/assumptions

1. gsaml, gaccess, gmail, gdata code have been installed

- auth/gsaml
- blocks/gmail
- blocks/gdata
- blocks/gaccess
- blocks/mgadget (optional as of beta)

#### Steps

1. Login to Moodle as an Administrator
2. Click Notifications to update block tables
3. Enable the Google Authentication plugin from the Manage Plugins admin page
4. Now Select Users Authentication goto Google Authentication there should be directions on the page to follow.
5. Enter your google partner page domain
6. Upload Certificate (for more information on creating this Google Documenation Regarding Key Generation )
7. Upload Private Key (for more information on creating this visit Google Documenation Regarding Key Generation)
8. Click Save
9. Follow the directions for adding the proper urls to the google SSO page
10. Click the checkbox on the google site to enable SSO
11. On the Google Site be sure to enable the provisioning API or no users will be updated.
12. On the Google Site make sure API Provisioning is Enabled
13. On the google side you may need to requset more User accounts
14. Return to Moodle's main page
15. Click Edit
16. Add GAccess, GMail and the Gdata blocks to the page.
17. Click Settings in the Google Apps block. Fill out the configuration information.
18. Click the Status link to confirm that your Google Apps block is set up properly.
19. Goto Site Administration > Security > Site policies
20. Check Password Policy
21. Set Password Length to 6 or greater (Required for Google's password policy)
22. In the Gdata block you need to add users to sync. Do this by clicking the add users to sync link in the Google Apps block. It helps to see the result if you set the gdata block cron to 1 min.
23. To Upload those Moodle Users into Google you may run the cron manually by visiting admin/cron.php Results for the sync should appear in the read out. Beware, as of this beta syncing Moodle Users with Google may take a LONG time.

#### Expected Results

- clicking on any Google Service links or visiting services from the Google Partner page will Authenticate against Moodle.
- User should be logged into Moodle as well as Google Partner Services
- See the Diagnostics Page in the gsaml settings for more information on your set up.

#### Considerations (As of BETA Version)

- The GMail feed may not be found. This is probabily a because the user passow doesn't match googles user password. In the future this won't be a problem. For now be sure to sync users with the Google Apps block. E Mail will update upon login. In the future unreadmessages should update in real time.
- The Location of the Google Authentcaion Plugin in the Authetni order is important. As of this moment it needs to override a users auth type when a moodle user changes passwords. This behavior may affect mnet users. A solution for this problem has not yet been found.