How to implement delegation
The JGAS is able to delegate the start of a web application or a web service to
another Genero REST service in order to perform some controls before granting access and starting
the application.
How delegation works The delegation process redirects the start of an application or service to a delegation service to authenticate a user. To help you understand delegation, different scenarios for starting and/or refusing a service and the communication paths involved are illustrated.Configure delegation for application or service To delegate the start of an application or service to the Genero REST service, specify a DELEGATE
element in the EXECUTION
component of your application or service.From the user agent to the REST service Each request of the form /ua/r and /ws/r coming from the user agent is delegated to the Genero REST service via its entry point.From the REST service to the proxy The delegation REST service must notify the dispatcher when it approves the start of an application or service.REST service example In this example, the REST service returns an HTTP error code 404
to the browser until the query string contains the string ByPass
.Delegation use cases Three examples of possible uses for the delegation mechanism.