[api] Updated authentication_engine to use ApplicationSetting