Openid Connect not creating new user accounts

Openid Connect not creating new user accounts

by Otaku Dude -
Number of replies: 0

Hiya,

We are moving to Microsoft OpenID Connect from LDAP. When a user tries to log in with no previous account, a new account should be created from a successful authentication? We are getting the following error:

Error in API call: Attempted to perform an unauthorized operation.

More information about this error

Debug info:
Error code: erroro365apibadcall_message
Stack trace:
  • line 288 of /local/o365/classes/rest/o365api.php: moodle_exception thrown
  • line 1914 of /local/o365/classes/rest/unified.php: call to local_o365\rest\o365api->process_apicall_response()
  • line 138 of /auth/oidc/classes/loginflow/base.php: call to local_o365\rest\unified->get_user()
  • line 205 of /auth/oidc/auth.php: call to auth_oidc\loginflow\base->get_userinfo()
  • line 4015 of /lib/moodlelib.php: call to auth_plugin_oidc->get_userinfo()
  • line 478 of /auth/oidc/classes/loginflow/authcode.php: call to create_user_record()
  • line 269 of /auth/oidc/classes/loginflow/authcode.php: call to auth_oidc\loginflow\authcode->handlelogin()
  • line 107 of /auth/oidc/classes/loginflow/authcode.php: call to auth_oidc\loginflow\authcode->handleauthresponse()
  • line 165 of /auth/oidc/auth.php: call to auth_oidc\loginflow\authcode->handleredirect()
  • line 29 of /auth/oidc/index.php: call to auth_plugin_oidc->handleredirect()

It's working fine for accounts we have made manually.

Thank you,

Nige.


Average of ratings: -