Difference between revisions of "Enable Moodle Authentication using Keycloak"

From PKC
Jump to navigation Jump to search
Line 9: Line 9:


==Moodle Configuration==
==Moodle Configuration==
 
To perform below task, please use administation account.
# Go to Site Administration > Server > OAuth2 Service
# On '''Create New Service''', click on '''Custom Button'''
# Below are the field to be completed
## Name
## Client ID
## Client Secret
##
[[Category:DevOps]]
[[Category:DevOps]]
[[Category:Moodle]]
[[Category:Moodle]]

Revision as of 06:26, 23 March 2022

Introduction

This procedure is tested on Moodle 3.11.6 (Build: 20220314), which you can see on : Site Administration > Notification. The goals is to enable new login button on login screen to login using Keycloak

Steps

Preparation on Keycloak

You need to prepare the client-id on keycloak configuration for Moodle to use, please see How to configure for new client application on Keycloak. Below are the configuration data that you need to prepare.

  1. ClientID; this can be new client-id or your existing client-id, it depends on how you manage the scope of authorization
  2. Client Secret; Generated on each client-id

Moodle Configuration

To perform below task, please use administation account.

  1. Go to Site Administration > Server > OAuth2 Service
  2. On Create New Service, click on Custom Button
  3. Below are the field to be completed
    1. Name
    2. Client ID
    3. Client Secret