[WIP] Added initial support for authentication