...
AuthorizationCodeGrantService supports producing "text/html" and simply relies on a registered RequestDispatcherProvider to set the OAuthAuthorizationData bean as an HttpServletRequest attribute and redirect the response to a view handler (can be JSP or some other servlet) to actually build the form and return it to the user. Alternatively, registering XSLTJaxbProvider would also be a good option for creating HTML viewsSee the section below on other alternatives on how a view can be created.
Assuming RequestDispatcherProvider is used, the following example log shows the initial response from AuthorizationCodeGrantService:
...
Typically one can use RequestDispatcherProvider to redirect to a view handler like JSP. Overriding RedirectionBasedService.startAuthorization by delegating to the superclass and then converting the Response to HTML or writing a custom MessageBodyWriter that will do the conversion are otehr other two options.
Yet another option is to register XSLTJaxbProvider which would convert OAuthAuthorizationData to HTML or JAXBProvider set with a reference to an XSLT stylesheet.
EndUser Name in Authorization Form
...