Skip to content

Commit 2038257

Browse files
authored
Merge pull request #51 from catalyst/update
Update plugin for the latest Moodle
2 parents 6c3d4a8 + 0ae1e38 commit 2038257

File tree

10 files changed

+200
-190
lines changed

10 files changed

+200
-190
lines changed

.travis.yml

Lines changed: 41 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,64 @@
11
language: php
22

3-
addons:
4-
firefox: "47.0.1"
5-
postgresql: "9.4"
3+
notifications:
4+
email:
5+
recipients:
6+
- dmitriim@catalyst-au.net
7+
8+
sudo: false
69

710
cache:
811
directories:
912
- $HOME/.composer/cache
10-
- $HOME/.npm
1113

12-
dist: trusty
14+
addons:
15+
postgresql: "9.6"
16+
17+
php:
18+
- 7.1
19+
- 7.2
20+
- 7.3
21+
22+
env:
23+
global:
24+
- DB=pgsql
25+
matrix:
26+
- MOODLE_BRANCH=MOODLE_33_STABLE
27+
- MOODLE_BRANCH=MOODLE_34_STABLE
28+
- MOODLE_BRANCH=MOODLE_35_STABLE
29+
- MOODLE_BRANCH=MOODLE_36_STABLE
30+
- MOODLE_BRANCH=MOODLE_37_STABLE
31+
- MOODLE_BRANCH=MOODLE_38_STABLE
32+
- MOODLE_BRANCH=master
1333

1434
matrix:
15-
include:
16-
- php: 7.0
17-
env: DB=mysqli MOODLE_BRANCH=MOODLE_33_STABLE
18-
- php: 7.0
19-
env: DB=pgsql MOODLE_BRANCH=MOODLE_33_STABLE
20-
- php: 7.0
21-
env: DB=mysqli MOODLE_BRANCH=MOODLE_34_STABLE
22-
- php: 7.0
23-
env: DB=pgsql MOODLE_BRANCH=MOODLE_34_STABLE
24-
- php: 7.1
25-
env: DB=mysqli MOODLE_BRANCH=MOODLE_33_STABLE
26-
- php: 7.1
27-
env: DB=pgsql MOODLE_BRANCH=MOODLE_33_STABLE
28-
- php: 7.1
29-
env: DB=mysqli MOODLE_BRANCH=MOODLE_34_STABLE
35+
exclude:
3036
- php: 7.1
31-
env: DB=pgsql MOODLE_BRANCH=MOODLE_34_STABLE
32-
- php: 7.1
33-
env: DB=mysqli MOODLE_BRANCH=MOODLE_35_STABLE
34-
- php: 7.1
35-
env: DB=pgsql MOODLE_BRANCH=MOODLE_35_STABLE
36-
- php: 7.1
37-
env: DB=mysqli MOODLE_BRANCH=MOODLE_36_STABLE
38-
- php: 7.1
39-
env: DB=pgsql MOODLE_BRANCH=MOODLE_36_STABLE
40-
- php: 7.2
41-
env: DB=mysqli MOODLE_BRANCH=MOODLE_37_STABLE
42-
- php: 7.2
43-
env: DB=pgsql MOODLE_BRANCH=MOODLE_37_STABLE
44-
- php: 7.2
45-
env: DB=mysqli MOODLE_BRANCH=master
37+
env: MOODLE_BRANCH=master
4638
- php: 7.2
47-
env: DB=pgsql MOODLE_BRANCH=master
39+
env: MOODLE_BRANCH=MOODLE_33_STABLE
40+
- php: 7.3
41+
env: MOODLE_BRANCH=MOODLE_33_STABLE
42+
- php: 7.3
43+
env: MOODLE_BRANCH=MOODLE_34_STABLE
44+
- php: 7.3
45+
env: MOODLE_BRANCH=MOODLE_35_STABLE
4846

4947
before_install:
50-
- phpenv config-rm xdebug.ini
51-
- nvm install 8.9
52-
- nvm use 8.9
5348
- cd ../..
54-
- composer create-project -n --no-dev --prefer-dist moodlerooms/moodle-plugin-ci ci ^2
49+
- composer selfupdate
50+
- composer create-project -n --no-dev moodlerooms/moodle-plugin-ci ci ^1
5551
- export PATH="$(cd ci/bin; pwd):$(cd ci/vendor/bin; pwd):$PATH"
5652

5753
install:
58-
- moodle-plugin-ci install
54+
- moodle-plugin-ci install -vvv
5955

6056
script:
6157
- moodle-plugin-ci phplint
58+
- moodle-plugin-ci phpmd
6259
- moodle-plugin-ci codechecker
63-
- moodle-plugin-ci validate
64-
- moodle-plugin-ci savepoints
65-
- moodle-plugin-ci mustache
66-
- moodle-plugin-ci grunt
60+
- moodle-plugin-ci csslint
61+
- moodle-plugin-ci shifter
62+
- moodle-plugin-ci jshint
6763
- moodle-plugin-ci phpunit
6864
- moodle-plugin-ci behat

README.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,4 +163,24 @@ echo getloginurl('barrywhite@googlemail.com', 'barry', 'white', 'barrywhite', 2,
163163

164164
TODO:
165165
-----
166-
1. Implement logout webservice to be able to call it from external application.
166+
1. Implement logout webservice to be able to call it from external application.
167+
168+
169+
# Crafted by Catalyst IT
170+
171+
This plugin was developed by Catalyst IT Australia:
172+
173+
https://www.catalyst-au.net/
174+
175+
![Catalyst IT](/pix/catalyst-logo.png?raw=true)
176+
177+
# Contributing and Support
178+
179+
Issues, and pull requests using github are welcome and encouraged!
180+
181+
https://github.com/catalyst/moodle-auth_userkey/issues
182+
183+
If you would like commercial support or would like to sponsor additional improvements
184+
to this plugin please contact us:
185+
186+
https://www.catalyst-au.net/contact-us

classes/privacy/provider.php

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<?php
2+
// This file is part of Moodle - http://moodle.org/
3+
//
4+
// Moodle is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU General Public License as published by
6+
// the Free Software Foundation, either version 3 of the License, or
7+
// (at your option) any later version.
8+
//
9+
// Moodle is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU General Public License for more details.
13+
//
14+
// You should have received a copy of the GNU General Public License
15+
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
16+
17+
/**
18+
* Privacy provider.
19+
*
20+
* @package auth_userkey
21+
* @author Dmitrii Metelkin (dmitriim@catalyst-au.net)
22+
* @copyright 2020 Catalyst IT
23+
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
24+
*/
25+
26+
namespace auth_userkey\privacy;
27+
28+
defined('MOODLE_INTERNAL') || die;
29+
30+
use core_privacy\local\metadata\null_provider;
31+
use core_privacy\local\legacy_polyfill;
32+
33+
/**
34+
* Privacy provider.
35+
*
36+
* @copyright 2020 Catalyst IT
37+
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
38+
*/
39+
class provider implements null_provider {
40+
41+
use legacy_polyfill;
42+
43+
/**
44+
* Get the language string identifier with the component's language
45+
* file to explain why this plugin stores no data.
46+
*
47+
* @return string
48+
*/
49+
public static function _get_reason() {
50+
return 'privacy:metadata';
51+
}
52+
53+
}

lang/en/auth_userkey.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,4 @@
5252
$string['ssourl_desc'] = 'URL of the SSO host to redirect users to. If defined users will be redirected here on login instead of the Moodle Login page';
5353
$string['redirecterrordetected'] = 'Unsupported redirect to {$a} detected, execution terminated.';
5454
$string['noip'] = 'Unable to fetch IP address of client.';
55+
$string['privacy:metadata'] = 'User key authentication plugin does not store any personal data.';

pix/catalyst-logo.png

5.17 KB
Loading

0 commit comments

Comments
 (0)