Initial support for token and session authentication.