Hi:
I am not expert in OAuth2 authentication. I am testing with a moodle 3.9 in my own computer, to allow OAuth 2 login with OpenStreetMap as issuer.
The OAuth issuer details for RafaelMoodleSite are as follows:
Consumer Key: ynaky...
Consumer Secret: DaYSN...
Request Token URL: https://www.openstreetmap.org/oauth/request_token
Access Token URL: https://www.openstreetmap.org/oauth/access_token
Authorise URL: https://www.openstreetmap.org/oauth/authorize
Requesting the following permissions from the user:
- read their user preferences.
We support HMAC-SHA1 (recommended) and RSA-SHA1 signatures.
---
On my Moodle server I set:
Name: OSM
Client ID: ynaky...
Client secret: DaYSN...
Authenticate token requests via HTTP headers: didn't select it.
Scopes included in a login request: openid profile email
Scopes included in a login request for offline access: openid profile email
Additional parameters included in a login request: (empty)
Additional parameters included in a login request for offline access: (empty)
Service base URL: (empty)
Login domains: (empty)
Logo URL: (empty)
Show on login page: I've selected it.
---
But when clicking in OSM button in the login frontpage, I get the following page:
The OpenStreetMap OAuth 2 info is here: https://wiki.openstreetmap.org/wiki/OAuth
Does anyone know what I am missing in the configuration?