Initial version of authorization implementation