Class PushedAuthorizationRequest

All Implemented Interfaces:
Message, Request

Pushed authorisation request (PAR).

Example HTTP request:

 POST /as/par HTTP/1.1
 Host: as.example.com
 Content-Type: application/x-www-form-urlencoded
 Authorization: Basic czZCaGRSa3F0Mzo3RmpmcDBaQnIxS3REUmJuZlZkbUl3

 response_type=code
 &client_id=s6BhdRkqt3
 &state=af0ifjsldkj
 &redirect_uri=https%3A%2F%2Fclient.example.org%2Fcb
 

Related specifications:

  • OAuth 2.0 Pushed Authorization Requests (RFC 9126)
  • Constructor Details

    • PushedAuthorizationRequest

      public PushedAuthorizationRequest(URI endpoint, ClientAuthentication clientAuth, AuthorizationRequest authzRequest)
      Creates a new authenticated pushed authorisation request for a confidential client.
      Parameters:
      endpoint - The URI of the PAR endpoint. May be null if the toHTTPRequest() method is not going to be used.
      clientAuth - The client authentication. Must not be null.
      authzRequest - The authorisation request. Must not be null.
    • PushedAuthorizationRequest

      public PushedAuthorizationRequest(URI endpoint, AuthorizationRequest authzRequest)
      Creates a new pushed authorisation request for a public client.
      Parameters:
      endpoint - The URI of the PAR endpoint. May be null if the toHTTPRequest() method is not going to be used.
      authzRequest - The authorisation request. Must not be null.
  • Method Details