-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Session moodle #3504
base: main
Are you sure you want to change the base?
Session moodle #3504
Conversation
Thanks for this @mcassisa - we'll take a look at this and get back to you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks useful. I have a few comments:
In AUTHENTICATION line 851 is
$auth['joomla']['rel_path'] = '..'; // Path to the Joomla! installation relative to MRBS.
I'm not familiar with Moodle. Is Joomla necessary to run it?
In systemdefaults.inc.php line 1047:
$auth['moodle']['rel_path'] = '..'; //MRBS should be in a subdirectory of moodle
Does the comment mean that MRBS has to be in a subdirectory of Moodle, or is this comment just explaining the '..' setting? Could you make the comment clearer please.
Also, the config settings and comments in AUTHENTICATION are not the same as those in systemdefaults.inc.php.
I fixed the documentation in AUTHENTICATION file and cleaned it up |
Thanks. One other comment: does Moodle offer a user API so that you can get details of users other than the currently logged in user? That would enable you to create AuthMoodle.php with methods such as |
Moodle offers some way to retrieve users, but apparently the operation is very heavy for large sites. What would the benefits to retrieve a list of moodle users? |
Getting a single user's details, through Getting all the users, through |
Any progress on this PR? |
No, I didn't work on it in the meantime (we chose to manually create users) - the contribution is usable, although it can be further improved |
Added the authentication through Moodle session on the model of remote user (auth = none because it is assumed that authentication is already managed by moodle itself). In order to easily get the moodle's session (i.e. without any modification in moodle) , MRBS should be in a subdirectory.
The users that have the capability to create courses in a specified category in moodle ("moodle/course:create") - tipically this is true for teachers - are granted an Access level = 1 (further adjustments on this can be done to meet the diverse installation requirements)