danielneis / moodle-auth_ws
This plugins allows your Moodle users to be authenticated against an external webservice
Installs: 21
Dependents: 0
Suggesters: 0
Security: 0
Stars: 12
Watchers: 5
Forks: 9
Open Issues: 4
Type:moodle-auth
Requires
- composer/installers: ~1.0
This package is not auto-updated.
Last update: 2024-10-26 18:11:54 UTC
README
Moodle plugin to authenticate users against external webservice.
This plugin let you configure a SOAP webservice to authenticate users against it.
Install
- Put these files at moodle/auth/ws/
- You may use composer
- or git clone
- or download the latest version from https://github.com/danielneis/moodle-auth_ws/archive/master.zip
- Log in your Moodle as Admin and go to "Notifications" page
- Follow the instructions to install the plugin
Usage
You configure the web service URL, the name of the function to be called, the returned Class and attribute to get the boolean result from.
This plugins does not create users, and also does not update users records.
Users are suposed to be created and updated by external service using the Moodle's webservices.
Users should have "auth = ws" for this plugin to authenticate users.
The screenshot below shows an example of how to configure you plugin to call your webservice
Create new user account on login
For this to happen you must change the "is_synchronised_with_external" function at https://github.com/danielneis/moodle-auth_ws/blob/master/auth.php#L134 to return true.
Then you must implement the "get_userinfo" function at https://github.com/danielneis/moodle-auth_ws/blob/master/auth.php#L88 to return the information for the user. See the fields on user table that Moodle may use to check if user is confirmed/complete.
Dev Info
Please, report issues at: https://github.com/danielneis/moodle-auth_ws/issues
Feel free to send pull requests at: https://github.com/danielneis/moodle-auth_ws/pulls