implement organizationRealm authentication and prepare MetadataRepository TokenService and ManagementService for cake pattern