Auth support

Support for new auth feature. Needs docs.