Problem with a custom OAuth2 service

Problem with a custom OAuth2 service

by mimi nom -
Number of replies: 2

Hello,

I added a custom OAuth2 service because I want to use my own identity provider that I installed locally, it is OpenID Connect whose base address is:

https://localhost:8443/ldap -openid-connect-server/

So I filled the form with the Client ID and Client Secret generated by my issuer (https://localhost:8443/ldap-openid-connect-server/) after providing

it with the moodle redirect URL which is: http://localhost/moodle/admin/oauth2callback.php

knowing that moodle is also installed locally. I also added the provider endpoints as shown in the screenshot. When I saved,

moodle tells me that the connection is not configured by marking it with an orange triangle (see screenshot). And also there is no button in the login

page allowing me to connect with my provider as is the case with Google where there is a button allowing us to connect with Google. The moodle logs

don't show any errors. I don't know if I have to configure other things. I have read this doc I couldn't find other things to do. Can you help me

solve this issue I really have no idea. I will also post this message in the Efrench forum

Thank you

Attachment Issuer Endpoints.png
Attachment OAuth2 service.png
Attachment Paramètres service OAuth2 en.png
Average of ratings: -
In reply to mimi nom

Re: Problem with a custom OAuth2 service

by Leon Stringer -
Picture of Core developers Picture of Particularly helpful Moodlers

The orange triangle means that you are missing the three endpoints which are mandatory for authenticating logins: authorization_endpoint, token_endpoint and userinfo_endpoint. These endpoint names must be exactly these, but you have endpoints Authorizationendpoint, Tokenendpoint and Userinfo

Average of ratings: Useful (1)