Generalized Policy Management profile for User Managed Access
1 Introduction
This section is not normative.
This document provides a mapping profile for Generalized Policy Management (GPM), targeting the Kantara Initiative's User-Managed Access (UMA) extensions for OAuth 2.0. In particular, it maps parameters of the following specifications on the GPM model.
- User-Managed Access Grant for OAuth 2.0
- Federated Authorization for UMA
2 Mapping UMA to GPM
The UMA framework defines request parameters for several protocol endpoints. This document specifies GPM mappings for the ticket request~[@map-ticket] and the token request~[@map-token].
2.1 Ticket request
UMA ticket requests, defined in Federated Authorization for UMA, consists either of a single JSON request object, or of a JSON array of such objects. Each request object contains the following required parameters.
resource_id: an AS-defined unique string, identifying the resource the request is concerned with.resource_scopes: an array of AS-defined strings, representing the scopes the request is concerned with.
Mapping:
An UMA ticket request maps to a single Policy, which MUST contain one rule for each resource_scope element of each request object, such that
the mode of the rule is
authorization;the class of the rule's operation is set to
urn:example:gpm:ops:uma;the action of the rule's operation is set to the value of the
resource_scopeelement, prefixed withurn:example:gpm:fallback:if the value is not a valid IRI;the target of the rule's operation is set to the value of the corresponding
resource_idproperty, prefixed withurn:example:gpm:fallback:if the value is not a valid IRI.
2.2 Token request
UMA token requests are OAuth 2.0 token requests. Their mapping therefore depends on the GPM OAuth 2.x profile.
An UMA token request maps to a single Policy, which extends the one resulting from applying the ticket request mapping to the parameters of the request corresponding to the value of the ticket property.
The requests can contain the following parameters, defined in User-Managed Access Grant for OAuth 2.0.
2.2.1 ticket
The ticket property is required. Its value is a unique string within the scope of the AS, which is returned to the client -- by way of the RS -- in response to an earlier ticket request, and serves as a handle that identifies the latter's request objects.
Mapping:
The ticket property of an UMA token request MUST be mapped to the request parameters of the request object identified by its value.
2.2.2 claim_token & claim_token_format
The claim_token and claim_token_format properties are optional, but require each other when present. The value of the former is a string, representing claim information provided by the client; the value of the latter is a string, indicating the format of the former.
Mapping:
If an UMA request contains the claim_token and claim_token_format properties, the recipient of the mapping's negotiate block MUST have an assertion that has the value of the claim_token_format property as datatype, and the value of the claim_token property as literal value.
2.2.3 pct
The pct property is optional. Its value is a unique string within the scope of the AS, which is returned to the client in response to an earlier token request, and serves as a handle that identifies a persistent claim token, saved by the AS to optimize the process.
Mapping:
If an UMA request contains the pct property, then the parameters of the persistent claim token -- identified by the property's value -- MUST be added as assertions to the recipient of the mapping's negotiate block.
2.2.4 rpt
The rpt property is optional. Its value is a string, namely an existing requesting party token (i.e., access token) issued by the AS.1
Mapping:
If an UMA request contains the rpt property, then its value MUST be added as (the value of) an assertion of the negotiation client in the mapping, with urn:example:gpm:fallback:rpt as its class.
...
Footnotes
The purpose of this property is to give the AS the option of upgrading the token, i.e., revoking the existing one and including its permissions in a newly issued one.↩︎