in lib/Authentication.cc [118:136]
AuthenticationPtr tryCreateBuiltinAuth(const std::string& pluginName, ParamMap& paramMap) {
if (boost::iequals(pluginName, TLS_PLUGIN_NAME) || boost::iequals(pluginName, TLS_JAVA_PLUGIN_NAME)) {
return AuthTls::create(paramMap);
} else if (boost::iequals(pluginName, TOKEN_PLUGIN_NAME) ||
boost::iequals(pluginName, TOKEN_JAVA_PLUGIN_NAME)) {
return AuthToken::create(paramMap);
} else if (boost::iequals(pluginName, ATHENZ_PLUGIN_NAME) ||
boost::iequals(pluginName, ATHENZ_JAVA_PLUGIN_NAME)) {
return AuthAthenz::create(paramMap);
} else if (boost::iequals(pluginName, OAUTH2_TOKEN_PLUGIN_NAME) ||
boost::iequals(pluginName, OAUTH2_TOKEN_JAVA_PLUGIN_NAME)) {
return AuthOauth2::create(paramMap);
} else if (boost::iequals(pluginName, DEFAULT_BASIC_METHOD_NAME) ||
boost::iequals(pluginName, BASIC_JAVA_PLUGIN_NAME)) {
return AuthBasic::create(paramMap);
} else {
return AuthenticationPtr();
}
}