auth: Creating auth scheme based on config