2017 © Pedro Peláez
 

moodle-auth moodle-auth_ws

This plugins allows your Moodle users to be authenticated against an external webservice

image

danielneis/moodle-auth_ws

This plugins allows your Moodle users to be authenticated against an external webservice

  • Wednesday, April 4, 2018
  • by danielneis
  • Repository
  • 3 Watchers
  • 8 Stars
  • 14 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 1 Versions
  • 8 % Grown

The README.md

Moodle External Webservice Authentication Plugin

Moodle plugin to authenticate users against external webservice., (*1)

This plugin let you configure a SOAP webservice to authenticate users against it., (*2)

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., (*3)

This plugins does not create users, and also does not update users records., (*4)

Users are suposed to be created and updated by external service using the Moodle's webservices., (*5)

Users should have "auth = ws" for this plugin to authenticate users., (*6)

The screenshot below shows an example of how to configure you plugin to call your webservice, (*7)

Config Example, (*8)

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., (*9)

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., (*10)

Dev Info

Please, report issues at: https://github.com/danielneis/moodle-auth_ws/issues, (*11)

Feel free to send pull requests at: https://github.com/danielneis/moodle-auth_ws/pulls, (*12)

Build Status Scrutinizer Code Quality, (*13)

The Versions

04/04 2018

dev-master

9999999-dev

This plugins allows your Moodle users to be authenticated against an external webservice

  Sources   Download

GPLv3 GPL-3.0-or-later

The Requires

 

by Daniel Neis Araujo