PHPackages                             danielneis/moodle-auth\_ws - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. danielneis/moodle-auth\_ws

ActiveMoodle-auth[Authentication &amp; Authorization](/categories/authentication)

danielneis/moodle-auth\_ws
==========================

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

12238[4 issues](https://github.com/danielneis/moodle-auth_ws/issues)PHP

Since Nov 9Pushed 7y ago3 watchersCompare

[ Source](https://github.com/danielneis/moodle-auth_ws)[ Packagist](https://packagist.org/packages/danielneis/moodle-auth_ws)[ RSS](/packages/danielneis-moodle-auth-ws/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Moodle External Webservice Authentication Plugin
================================================

[](#moodle-external-webservice-authentication-plugin)

Moodle plugin to authenticate users against external webservice.

This plugin let you configure a SOAP webservice to authenticate users against it.

Install
-------

[](#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](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
-----

[](#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

[![Config Example](https://github.com/danielneis/moodle-auth_ws/raw/master/moodle-auth_ws_settings.png)](https://github.com/danielneis/moodle-auth_ws/blob/master/moodle-auth_ws_settings.png)

Create new user account on login
--------------------------------

[](#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](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](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
--------

[](#dev-info)

Please, report issues at: [https://github.com/danielneis/moodle-auth\_ws/issues](https://github.com/danielneis/moodle-auth_ws/issues)

Feel free to send pull requests at: [https://github.com/danielneis/moodle-auth\_ws/pulls](https://github.com/danielneis/moodle-auth_ws/pulls)

[![Build Status](https://camo.githubusercontent.com/66dcc101cf3ba1adccb166be973037be2d5285588bed2c4c22823cb9173da4da/68747470733a2f2f7472617669732d63692e6f72672f64616e69656c6e6569732f6d6f6f646c652d617574685f77732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/danielneis/moodle-auth_ws)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/05662c901059536d39d73b137d395448e7e7b7a48f10fcf12d70089f02950e70/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f64616e69656c6e6569732f6d6f6f646c652d617574685f77732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/danielneis/moodle-auth_ws/?branch=master)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/5bf615701d17d0b70fa2b79f02b76c90aba78a21469f8f907ea20a9bf266d144?d=identicon)[danielneis](/maintainers/danielneis)

---

Top Contributors

[![danielneis](https://avatars.githubusercontent.com/u/17608?v=4)](https://github.com/danielneis "danielneis (25 commits)")

### Embed Badge

![Health badge](/badges/danielneis-moodle-auth-ws/health.svg)

```
[![Health](https://phpackages.com/badges/danielneis-moodle-auth-ws/health.svg)](https://phpackages.com/packages/danielneis-moodle-auth-ws)
```

###  Alternatives

[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)[beatswitch/lock

A flexible, driver based Acl package for PHP 5.4+

870304.7k2](/packages/beatswitch-lock)[amocrm/amocrm-api-library

amoCRM API Client

182728.5k6](/packages/amocrm-amocrm-api-library)[vonage/jwt

A standalone package for creating JWTs for Vonage APIs

424.1M4](/packages/vonage-jwt)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
