Skip to content

Releases: adlnet/moodle-jwt-auth

Syntax Fix for Role Check

17 Oct 20:39
d3eb4a2
Compare
Choose a tag to compare
Pre-release

Fixes a syntax issue for the role check function doesPayloadSatisfyRoleRequirement($payload).

Level clarification:

function doesPayloadSatisfyRoleRequirement($payload)

to

private function doesPayloadSatisfyRoleRequirement($payload)

and a $this-> object specifier

$satisfiesRoleRequirement = doesPayloadSatisfyRoleRequirement($payload);

to

$satisfiesRoleRequirement = $this->doesPayloadSatisfyRoleRequirement($payload);

Flag to Prevent Auto User Creation

17 Oct 15:07
Compare
Choose a tag to compare
Pre-release

Adds an optional environment flag to prevent automatically creating the user if they did not previously exist.

MOODLE_JWT_PREVENT_AUTO_USER_CREATION: Prevents user creation for non-existent accounts when set to true.

Adding Role Requirement

01 Oct 15:34
ed141e0
Compare
Choose a tag to compare
Pre-release

Adds an optional role requirement for the login process. This check introduces three new optional environment variables:

  • MOODLE_JWT_USE_ROLE_CHECK: Whether to use the role, enabled with string literal true.
  • MOODLE_JWT_REQUIRED_ROLE: The role to expect.
  • MOODLE_JWT_ROLE_FIELD: The JWT property containing the roles array.

If MOODLE_JWT_USE_ROLE_CHECK is present and true, but the other two variables are missing or empty, then the login will fail.

0.16 Release

26 Apr 16:36
0961079
Compare
Choose a tag to compare
0.16 Release Pre-release
Pre-release

Small syntax updates and a fix to rare username property execution path.

v0.15

30 Jan 19:17
28ff32e
Compare
Choose a tag to compare
v0.15 Pre-release
Pre-release

Fixing the syntax in the EDIPI interpretter.

v0.14

30 Jan 18:46
8cf9ea6
Compare
Choose a tag to compare
v0.14 Pre-release
Pre-release

Fixing issue where strcasecmp() worked differently than expected.

v0.13

29 Jan 17:39
Compare
Choose a tag to compare
v0.13 Pre-release
Pre-release

Updating an incorrect syntax for the env checks, as isset() and getenv() had a different interaction than expected.

v0.12

25 Jan 23:02
5431efe
Compare
Choose a tag to compare
v0.12 Pre-release
Pre-release

Fixes to EDIPI Syntax.

v0.11 - Locking Email by Default

10 Jan 20:28
Compare
Choose a tag to compare
Pre-release

This update will prevent users from changing their email by default, unless permitted by an admin.

Random Password with Configuration

09 Nov 14:54
Compare
Choose a tag to compare
Pre-release

Allows two optional properties to help with the password generation portion.

ASSIGN_RANDOM_PASSWORD_PROPERTY_FIRST
ASSIGN_RANDOM_PASSWORD_PROPERTY_SECOND

These are intended as JWT properties that will be used as part of the password generation function.

Again, this password is never actually accessible, but the goal is to still generate a sufficiently weird password and pass the pipeline stages for plugins within Moodle.