UMA permission tickets need resource-server binding and scope validation
User-Managed Access (UMA) 2.0 turns an ordinary access denial into a controlled authorization exchange. A resource server sees a request, asks an authorization server for a permission ticket, and returns that ticket to the client. The client then presents it during the UMA grant. The ticket carries state about the requested resource and scopes, so it deserves the same care as an access token.
The ticket is not a substitute for the resource server's own policy check. The resource server still needs to establish which protected resource was requested and which scopes are appropriate. It then validates the resulting requesting party token. A common implementation mistake is to treat any valid ticket as approval for whatever resource the client names later. That flips the authorization model: the client gains control over the relationship between the ticket and the protected object.
Kantara's UMA specifications define the permission endpoint and describe how a permission can contain multiple resource and scope pairs. This expressive format is useful for an album with several photos, but it also means that the authorization server must preserve the resource identifiers exactly. It should not normalize unrelated identifiers into the same namespace or let one resource server redeem a ticket issued for another. The resource server should reject a ticket whose issuer, resource, or scope does not match the current request.
Pass-the-ticket risk illustrates the problem. If an attacker can move a ticket from one resource server to another, the second server may obtain authorization for a resource because the authorization server interpreted the ticket too broadly. Defenses belong at both ends: the authorization server needs an authenticated resource-server identity and a resource namespace it can trust; the resource server needs to verify that the ticket describes its own resource and that the token returned does not grant a different scope.
Other controls are straightforward but often skipped. Tickets should be short lived and single use where the profile permits. They should not appear in logs at full length. The client should receive them only through the defined challenge response. Consent and remembered consent need to show the requesting party, client, resource, and scopes that the authorization server actually evaluated. Remembering consent for a different tuple is not evidence for the current request.
A practical review can start without changing the protocol. Trace one denied request from resource server to permission endpoint to token exchange. Record the resource value at each step. Check that issuer metadata is pinned, that the resource server rejects a ticket for a different resource, and that the final token carries only the intended scopes. Then repeat the test with two resource servers and a stale ticket. If the second server accepts it, the deployment has a binding defect rather than a client usability problem.
Monitoring should focus on transitions. Repeated 403 responses followed by permission requests can be normal. A large increase in tickets redeemed by a resource server that did not issue the challenge may not be. Alert on ticket reuse, issuer mismatches, resource mismatches, and successful token exchanges after a ticket's documented lifetime. Those events are more informative than watching for a generic authentication failure.
UMA is flexible enough to support delegated access across independently managed services. That flexibility makes explicit binding essential. A ticket should answer one narrow question: may this requesting party obtain these scopes for this resource from this resource server? If the implementation cannot still answer that question when the token arrives, the exchange has lost the authority the user granted.
Top comments (0)