Dear Team,
I am trying to use Azure B2C AD as a identity provider for moodle.
Anybody has done anything is this regard kindly let me know the possibilities.
Thanks
Any news comming from this?
We managed to make it work with this plugin :
Have you been able to link accounts from other IDPs like Google, Amazon to AD registered accounts?
Great!! I'll run some tests on it. Also, I saw that the plugin doesn't support pt_BR, if it works as expected I'll provide a PR with a proper translation to Portuguese.
A real big thanks! My issue was related to the scope.
Hi,
I did all required step but I have error. After I signed up or signed in using B2C plugin and back to redirect uri moodle show me error
"Error writing to database"
I during the session i have error like this
Redirect uri have correct value from admin page in moodle
You need to go to
Home -> Azure AD B2C | App registrations -> API permissions
On this page click "+Add a permission" and then Go to tab "APIs my organization uses" or search for you API and select it.
Then add all the 4 permissions
1. offline_access
2.read
3.user_impersonation
4.write
Then "Grant Admin Consent for your API"
Hi @Gopal,
We have tried your plugin and it works well, there is only one thing we would like to ask if it's possible to fix:
We are using Moodle as an extension of our app which is using B2C auth as IDP, so we log in first in our app. When we click on a moodle link for a specific course, it always asks for login even if we are already logged in from the other app (same client_id, tenant, app registration, etc.). So it behaves as a separate IDP even though it should work as a SSO.
Funny enough, it works the other way around : If I log into Moodle first, when I go to my app it will be logged in automatically.
Thanks!