LTI Integration Library 4.10.3
PHP class library for building LTI integrations
 
Loading...
Searching...
No Matches
Jwt.php
1<?php
2
3namespace ceLTIc\LTI\Jwt;
4
6
14class Jwt
15{
16
22 public static $life = 60;
23
29 public static $leeway = 180;
30
36 public static $allowJkuHeader = false;
37
43 private static $jwtClient;
44
48 function __construct()
49 {
50
51 }
52
58 public static function setJwtClient($jwtClient = null)
59 {
60 self::$jwtClient = $jwtClient;
61 Util::logDebug('JwtClient set to \'' . get_class(self::$jwtClient) . '\'');
62 }
63
69 public static function getJwtClient()
70 {
71 if (!self::$jwtClient) {
72 self::$jwtClient = new FirebaseClient();
73 Util::logDebug('JwtClient set to \'' . get_class(self::$jwtClient) . '\'');
74 }
75
76 return self::$jwtClient;
77 }
78
79}
Class to implement the JWT interface using the Firebase JWT library from https://github....
Class to represent an HTTP message request.
Definition Jwt.php:15
__construct()
Class constructor.
Definition Jwt.php:48
static getJwtClient()
Get the JWT client to use for handling JWTs.
Definition Jwt.php:69
static $life
Life (in seconds) of an issued JWT (default is 1 minute).
Definition Jwt.php:22
static $allowJkuHeader
Allow use of jku header in JWT.
Definition Jwt.php:36
static $leeway
Leeway (in seconds) to allow when checking timestamps (default is 3 minutes).
Definition Jwt.php:29
static setJwtClient($jwtClient=null)
Set the JWT client to use for handling JWTs.
Definition Jwt.php:58
Class to implement utility methods.
Definition Util.php:15
static logDebug($message, $showSource=false)
Log a debug message.
Definition Util.php:274