Hi:
I am looking at Dropwizard for my project. I have an authentication scheme that requires the domain name of the web client to resolve what user database to access in the backend for authentication.
This is intended to support multi-tenancy.
It will work via Basic over SSL and the authentication will allow access to a web application interface as well as the underlying rest web services that may be invoked via javascript on the same domain.
As I understand it, I need only write an Authenticator class to resolve whether the given credentials have permission. How do I go about accessing the server request from within the Authenticator class so I can access the domain name of the calling client and use that for credential resolution?
To summarize: I need access to the equivalent of HttpServletRequest that might be available to me in the Authenticator, granted that it's not a servlet. I just need to have a mechanism to grab the domain name of the request from the underlying Jetty server itself.
Thank you!