Rev 1116 | Rev 1265 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1116 | Rev 1130 | ||
---|---|---|---|
Line 23... | Line 23... | ||
23 | \defined('INSIDE_OIDPLUS') or die; |
23 | \defined('INSIDE_OIDPLUS') or die; |
24 | // phpcs:enable PSR1.Files.SideEffects |
24 | // phpcs:enable PSR1.Files.SideEffects |
25 | 25 | ||
26 | class OIDplusAuthContentStoreJWT extends OIDplusAuthContentStoreDummy { |
26 | class OIDplusAuthContentStoreJWT extends OIDplusAuthContentStoreDummy { |
27 | 27 | ||
- | 28 | /** |
|
- | 29 | * Cookie name for the JWT auth token |
|
- | 30 | */ |
|
28 | const COOKIE_NAME = 'OIDPLUS_AUTH_JWT'; |
31 | const COOKIE_NAME = 'OIDPLUS_AUTH_JWT'; |
29 | 32 | ||
- | 33 | /** |
|
- | 34 | * "Automated AJAX" plugin |
|
- | 35 | */ |
|
30 | const JWT_GENERATOR_AJAX = 0; // "Automated AJAX" plugin |
36 | const JWT_GENERATOR_AJAX = 0; |
- | 37 | /** |
|
- | 38 | * "Remember me" login method |
|
- | 39 | */ |
|
31 | const JWT_GENERATOR_LOGIN = 1; // "Remember me" login method |
40 | const JWT_GENERATOR_LOGIN = 1; |
- | 41 | /** |
|
32 | const JWT_GENERATOR_MANUAL = 2; // "Manually crafted" JWT tokens |
42 | * "Manually crafted" JWT tokens |
- | 43 | */ |
|
- | 44 | const JWT_GENERATOR_MANUAL = 2; |
|
33 | 45 | ||
34 | /** |
46 | /** |
35 | * @param int $gen OIDplusAuthContentStoreJWT::JWT_GENERATOR_... |
47 | * @param int $gen OIDplusAuthContentStoreJWT::JWT_GENERATOR_... |
36 | * @param string $sub |
48 | * @param string $sub |
37 | * @return string |
49 | * @return string |