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 34
static void
init()
Initializes the authentication process based on the request token.
at line 39
static void
auth_check()
Checks if the user is already logged in.
at line 49
static moodle_url
generate_login_url(stdClass $user, int $expires = 120)
Generates a login URL with a JWT token.
at line 54
static void
redirect()
Redirects the user safely.