GopalSharma / moodle-auth_azureb2c

The Azure AD B2C Connect plugin provides registering of a new user and single-sign-on functionality using configurable identity providers, scope and custom policies of Azure B2C.
GNU General Public License v3.0
2 stars 7 forks source link

Moodle Azure AD b2c cannot retrive token #30

Open leonardoviotto opened 1 year ago

leonardoviotto commented 1 year ago

Hallo! I get that error while I try to do login. The error in the image is: Column 'token' can not be null. The scope field is: openid https://<api-uri-id>/read. Can someone help me? Thank you Regards Leonardo Schermata del 2023-07-25 17-52-16

vcciaccounts commented 1 year ago

We had the same issue.

We found this as our answer - https://stackoverflow.com/a/67031342

Without providing a APPID you never get an Access Token. Therefore the Scope in the needs to be

openid profile offline_access **APPID**

Note: The APPID is the ClientId