Search in sources :

Example 1 with GuicedRestlet

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;
}
Also used : RestletRealmRouter(org.forgerock.openam.rest.service.RestletRealmRouter) GuicedRestlet(org.forgerock.oauth2.restlet.GuicedRestlet) RestletRealmRouter(org.forgerock.openam.rest.service.RestletRealmRouter) Router(org.restlet.routing.Router)

Aggregations

GuicedRestlet (org.forgerock.oauth2.restlet.GuicedRestlet)1 RestletRealmRouter (org.forgerock.openam.rest.service.RestletRealmRouter)1 Router (org.restlet.routing.Router)1