Class tigrbl_auth.rfc.rfc8693.TokenExchangeRequest
tigrbl_auth.rfc.rfc8693.TokenExchangeRequest
TokenExchangeRequest(
grant_type,
subject_token,
subject_token_type,
*,
actor_token=None,
actor_token_type=None,
resource=None,
audience=None,
scope=None,
requested_token_type=None,
)
Represents a token exchange request per RFC 8693.
Initialize a token exchange request.
PARAMETER | DESCRIPTION |
---|---|
grant_type
|
Must be TOKEN_EXCHANGE_GRANT_TYPE
TYPE:
|
subject_token
|
The token representing the subject
TYPE:
|
subject_token_type
|
Type URI of the subject token
TYPE:
|
actor_token
|
Optional token representing the actor
TYPE:
|
actor_token_type
|
Type URI of the actor token (required if actor_token provided)
TYPE:
|
resource
|
Optional target resource(s)
TYPE:
|
audience
|
Optional target audience(s)
TYPE:
|
scope
|
Optional requested scope
TYPE:
|
requested_token_type
|
Optional requested token type
TYPE:
|
Source code in tigrbl_auth/rfc/rfc8693.py
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 |
|
grant_type
instance-attribute
grant_type = grant_type
subject_token
instance-attribute
subject_token = subject_token
subject_token_type
instance-attribute
subject_token_type = subject_token_type
actor_token
instance-attribute
actor_token = actor_token
actor_token_type
instance-attribute
actor_token_type = actor_token_type
resource
instance-attribute
resource = resource
audience
instance-attribute
audience = audience
scope
instance-attribute
scope = scope
requested_token_type
instance-attribute
requested_token_type = requested_token_type
validate
validate()
Validate the token exchange request per RFC 8693.
Source code in tigrbl_auth/rfc/rfc8693.py
99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 |
|