auth_service_interface
interface auth_service_interface
Authentication Service Contract.
Defines methods for handling JWT authentication, session management, and secure redirects.
Methods
static void
init()
Initializes the authentication process based on the request token.
static void
auth_check()
Checks if the user is already logged in.
static moodle_url
static void
redirect()
Redirects the user safely.
Details
at line 36
static void
init()
Initializes the authentication process based on the request token.
at line 41
static void
auth_check()
Checks if the user is already logged in.
at line 51
static moodle_url
generate_login_url(stdClass $user, int $expires = 120)
Generates a login URL with a JWT token.
at line 56
static void
redirect()
Redirects the user safely.