OAuth2 Google Service: Unterschied zwischen den Versionen

Aus MoodleDocs
Wechseln zu:Navigation, Suche
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 6: Zeile 6:
Um einen OAuth2 Client in Google aufzusetzen, müssen Sie sich als erstes in der [https://console.developers.google.com/ Google Developers Console] anmelden und ein neues Projekt anlegen.
Um einen OAuth2 Client in Google aufzusetzen, müssen Sie sich als erstes in der [https://console.developers.google.com/ Google Developers Console] anmelden und ein neues Projekt anlegen.
* Verwenden Sie dazu das Menü oben auf der Seite.
* Verwenden Sie dazu das Menü oben auf der Seite.
[[File:google-1-create-new.png|400px]]
:[[File:google-1-create-new.png|300px]]
*Geben Sie dem Projekt einen beliebigen Namen. Der Name wird bei der Anmeldung nirgends angezeigt.
*Geben Sie dem Projekt einen beliebigen Namen. Der Name wird bei der Anmeldung nirgends angezeigt.
[[File:google-2-create-new-modal.png|400px]]
:[[File:google-2-create-new-modal.png|300px]]
*Im Menü auf der linken Seite wählen Sie die Option ''Credentials" aus.
*Im Menü auf der linken Seite wählen Sie die Option ''Credentials" aus.
[[File:google-3-credentials.png|400px]]
:[[File:google-3-credentials.png|300px]]
 
*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.
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.
:[[File:google-4-consent.png|300px]]
 
*Now you can create some client credentials. Switch to the credentials tab and create a new OAuth client ID.  
[[File:google-4-consent.png|none|frame|Setup consent screen]]
:[[File:google-5-oauth-credentials.png|300px]]
 
*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 <nowiki>https://lemon.edu/</nowiki> then this callback URL should be set to <nowiki>https://lemon.edu/admin/oauth2callback.php</nowiki>.
Now you can create some client credentials. Switch to the credentials tab and create a new OAuth client ID.  
:[[File:google-6-web-application-credentials.png|300px]]
 
*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.
[[File:google-5-oauth-credentials.png|none|frame|Create an OAuth Client ID]]
:[[File:google-7-oauth-details.png|300px]]
 
*Finally we have to enable the Drive API (if we want to use the google drive repository or file converter plugins).
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 <nowiki>https://lemon.edu/</nowiki> then this callback URL should be set to <nowiki>https://lemon.edu/admin/oauth2callback.php</nowiki>.
:[[File:google-8-library.png|300px]]
 
:[[File:google-9-select-drive.png|300px]]
[[File:google-6-web-application-credentials.png|none|frame|Set the callback URL]]
:[[File:google-10-enable-drive.png|300px]]
 
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.
 
[[File:google-7-oauth-details.png|none|frame|Got my secrets!]]
 
Finally we have to enable the Drive API (if we want to use the google drive repository or file converter plugins).
 
[[File:google-8-library.png|none|frame|View the Library tab]]
 
[[File:google-9-select-drive.png|none|frame|Select Drive API]]
 
[[File:google-10-enable-drive.png|none|frame|Enable the API]]


==Siehe auch==
==Siehe auch==

Version vom 16. Juni 2017, 14:56 Uhr

Vorlage:Zum Übersetzen

Neue Funktionalität
in Moodle 3.8!

Einen OAuth2 Client in Google aufsetzen

Um einen OAuth2 Client in Google aufzusetzen, müssen Sie sich als erstes in der Google Developers Console anmelden und ein neues Projekt anlegen.

  • Verwenden Sie dazu das Menü oben auf der Seite.
google-1-create-new.png
  • Geben Sie dem Projekt einen beliebigen Namen. Der Name wird bei der Anmeldung nirgends angezeigt.
google-2-create-new-modal.png
  • Im Menü auf der linken Seite wählen Sie die Option Credentials" aus.
google-3-credentials.png
  • 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.
google-4-consent.png
  • Now you can create some client credentials. Switch to the credentials tab and create a new OAuth client ID.
google-5-oauth-credentials.png
  • 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.
google-6-web-application-credentials.png
  • 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.
google-7-oauth-details.png
  • Finally we have to enable the Drive API (if we want to use the google drive repository or file converter plugins).
google-8-library.png
google-9-select-drive.png
google-10-enable-drive.png

Siehe auch