Added support for framework authentication.

Fixes #52