|
12 | 12 | from oidcmsg.message import REQUIRED_LIST_OF_SP_SEP_STRINGS |
13 | 13 | from oidcmsg.message import REQUIRED_LIST_OF_STRINGS |
14 | 14 | from oidcmsg.message import SINGLE_OPTIONAL_INT |
| 15 | +from oidcmsg.message import SINGLE_OPTIONAL_JSON |
15 | 16 | from oidcmsg.message import SINGLE_OPTIONAL_STRING |
16 | 17 | from oidcmsg.message import SINGLE_REQUIRED_BOOLEAN |
| 18 | +from oidcmsg.message import SINGLE_REQUIRED_INT |
17 | 19 | from oidcmsg.message import SINGLE_REQUIRED_STRING |
18 | 20 |
|
19 | 21 | logger = logging.getLogger(__name__) |
@@ -350,6 +352,20 @@ def verify(self, **kwargs): |
350 | 352 | return True |
351 | 353 |
|
352 | 354 |
|
| 355 | +class SecurityEventToken(Message): |
| 356 | + c_param = { |
| 357 | + "iss": SINGLE_REQUIRED_STRING, |
| 358 | + "iat": SINGLE_REQUIRED_INT, |
| 359 | + "jti": SINGLE_REQUIRED_STRING, |
| 360 | + "aud": OPTIONAL_LIST_OF_STRINGS, |
| 361 | + "sub": SINGLE_OPTIONAL_STRING, |
| 362 | + "exp": SINGLE_OPTIONAL_INT, |
| 363 | + "events": SINGLE_OPTIONAL_JSON, |
| 364 | + "txt": SINGLE_OPTIONAL_STRING, |
| 365 | + "toe": SINGLE_OPTIONAL_INT |
| 366 | + } |
| 367 | + |
| 368 | + |
353 | 369 | def factory(msgtype, **kwargs): |
354 | 370 | """ |
355 | 371 | Factory method that can be used to easily instansiate a class instance |
|
0 commit comments