a custom LoginHandler that reads a cookie or header set by your application would be the way to do that, as described in this related discussion.
a custom LoginHandler that reads a cookie or header set by your application would be the way to do that, as described in this related discussion.