Class BaseFederationConfigurationEndpoint
- java.lang.Object
-
- com.authlete.jaxrs.BaseEndpoint
-
- com.authlete.jaxrs.BaseFederationConfigurationEndpoint
-
public class BaseFederationConfigurationEndpoint extends BaseEndpoint
A base class for the entity configuration endpoint of OpenID Connect Federation 1.0.An OpenID Provider that supports OpenID Connect Federation 1.0 must provide an endpoint that returns its entity configuration in the JWT format. The URI of the endpoint is defined as follows:
- Entity ID +
/.well-known/openid-federation
- Host component of Entity ID +
/.well-known/openid-federation
+ Path component of Entity ID (The same rule in RFC 8414)
Entity ID is a URL that identifies an OpenID Provider (and other entities including Relying Parties, Trust Anchors and Intermediate Authorities) in the context of OpenID Connect Federation 1.0.
- Since:
- 2.49, Authlete 2.3
- See Also:
- OpenID Connect Federation 1.0
- Entity ID +
-
-
Constructor Summary
Constructors Constructor Description BaseFederationConfigurationEndpoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
handle(com.authlete.common.api.AuthleteApi api)
Handle a request to the entity configuration endpoint.javax.ws.rs.core.Response
handle(com.authlete.common.api.AuthleteApi api, com.authlete.common.dto.FederationConfigurationRequest request)
Handle a request to the entity configuration endpoint.-
Methods inherited from class com.authlete.jaxrs.BaseEndpoint
extractClientCertificate, extractClientCertificateChain, extractHeadersAsPairs, onError, takeAttribute
-
-
-
-
Method Detail
-
handle
public javax.ws.rs.core.Response handle(com.authlete.common.api.AuthleteApi api, com.authlete.common.dto.FederationConfigurationRequest request)
Handle a request to the entity configuration endpoint.This method internally creates a
FederationConfigurationRequestHandler
instance and calls itshandle
(
method. Then, this method uses the value returned from the handler's method as a response from this method.FederationConfigurationRequest
)When the handler's method raises a
WebApplicationException
, this method callsonError(WebApplicationException)
method with the exception. The default implementation ofonError()
does nothing. You can override the method as necessary. After callingonError()
method, this method callsgetResponse()
method of the exception and uses the returned value as a response from this method.- Parameters:
api
- An implementation ofAuthleteApi
.- Returns:
- A response that should be returned from the entity configuration endpoint.
-
handle
public javax.ws.rs.core.Response handle(com.authlete.common.api.AuthleteApi api)
Handle a request to the entity configuration endpoint.This method is an alias of
handle
(api, new FederationConfigurationRequest())
- Parameters:
api
- An implementation ofAuthleteApi
.- Returns:
- A response that should be returned from the entity configuration endpoint.
-
-