OAuth2

Tags

Many times, our Moodle platform needs to be accessible to external users. For example, in the case of MOOCs (Massive Open Online Courses), we open the platform to both internal and external students for use.

Therefore, we integrate Google or Facebook accounts, allowing students to directly use their social media accounts to access the platform without the need to input an email address, go through the process of waiting for a confirmation email, etc. In short, this shortens the account registration process.

社群身份認證模組_封面
Preparation time
5 minutes
Difficulty
Easy
Directions

OAuth2

Integrate Google/Facebook authentication.

After installation, we will see two additional buttons on the Moodle login page. (google/facebook)。

社群身分認證模組_登入頁面

 

Upon clicking "Sign-in with Google" or "Sign-in with Facebook," you will be directed to a confirmation page.

Taking Google account login as an example - allowing permissions for this application:

Moodle authentication will need/access your email address from Google, as well as your personal information associated with your Google account. Upon clicking "Allow," you will be able to log in using your Google account. (Similar steps apply for Facebook, but we'll omit them here.)

社群身分認證模組_Google帳號登入_允許此應用程式權限

 

Using Facebook account login. 

社群身分認證模組_Facebook帳號登入

 

After logging in, you will see your name in the top right corner (login successful).

社群身分認證模組_登入成功