OAuth 2 Google service: Difference between revisions
Helen Foster (talk | contribs) (see also) |
Helen Foster (talk | contribs) (Features requiring the OAuth 2 Google service) |
||
Line 1: | Line 1: | ||
{{OAuth2}} | {{OAuth2}} | ||
To | ==Features requiring the OAuth 2 Google service== | ||
You will need to set up an OAuth 2 Google service in order to use the following features: | |||
* [[Google Drive repository]] | |||
* [[OAuth 2 authentication]] for enabling users to log in to Moodle with their Google account | |||
* [[Google Drive converter]] for converting assignment submission files to PDF for teachers to annotate | |||
==OAuth 2 Google service setup== | |||
To set up an OAuth 2 client with Google, first we need to login to the [https://console.developers.google.com/ Google Developers Console] and create a new project. | |||
Create a new project using the menu at the top of the page. | Create a new project using the menu at the top of the page. | ||
Line 39: | Line 48: | ||
[[File:google-10-enable-drive.png|none|frame|Enable the API]] | [[File:google-10-enable-drive.png|none|frame|Enable the API]] | ||
[[es:Servicio OAuth 2 Google]] | [[es:Servicio OAuth 2 Google]] | ||
[[de:OAuth2 Google Service]] | [[de:OAuth2 Google Service]] |
Revision as of 06:51, 16 August 2017
Features requiring the OAuth 2 Google service
You will need to set up an OAuth 2 Google service in order to use the following features:
- Google Drive repository
- OAuth 2 authentication for enabling users to log in to Moodle with their Google account
- Google Drive converter for converting assignment submission files to PDF for teachers to annotate
OAuth 2 Google service setup
To set up an OAuth 2 client with Google, first we need to login to the Google Developers Console and create a new project.
Create a new project using the menu at the top of the page.
Call the new project whatever you like, this name is not shown to users when they are asked to authorise this application.
Select "credentials" from the menu on the left.
Setup the consent screen for your application. This is where you provide the public information that is shown to users when they are asked to authorise your application. Setting a product name is the minimum information that is required, but the more information you provide here - the more confidence users will have when granting this authorisation.
Now you can create some client credentials. Switch to the credentials tab and create a new OAuth client ID.
Setup the credentials for a Web Application. The most important setting here is to set the callback URL. This must be set to "your moodle site url + /admin/oauth2callback.php". If your moodle site was accessible at https://lemon.edu/ then this callback URL should be set to https://lemon.edu/admin/oauth2callback.php.
When you have saved the information on this page, Google will give you the client ID and client secret that you need to enter into Moodle.
Finally we have to enable the Drive API (if we want to use the google drive repository or file converter plugins).