use of org.forgerock.oauth2.restlet.GuicedRestlet in project OpenAM by OpenRock.
the class WebFinger method createInboundRoot.
/**
* Creates the endpoint handler registrations for the OpenId Connect web finger endpoints.
*
* @return {@inheritDoc}
*/
@Override
public Restlet createInboundRoot() {
final Router root = new RestletRealmRouter(realmValidator, coreWrapper);
/**
* For now we only use webfinger for OpenID Connect. Once the standard is finalized
* or we decide to use it for other tasks we dont need a full blown handler
*/
root.attach("/webfinger", auditWithOAuthFilter(new GuicedRestlet(getContext(), OpenIDConnectDiscovery.class)));
return root;
}
Aggregations