OPTION(rgw_dns_name, OPT_STR, "")
OPTION(rgw_swift_url, OPT_STR, "") //
OPTION(rgw_swift_url_prefix, OPT_STR, "swift") //
+OPTION(rgw_swift_auth_entry, OPT_STR, "auth") // entry point for which a url is considered a swift auth url
OPTION(rgw_enforce_swift_acls, OPT_BOOL, true)
OPTION(rgw_print_continue, OPT_BOOL, true) // enable if 100-Continue works
OPTION(rgw_remote_addr_param, OPT_STR, "REMOTE_ADDR") // e.g. X-Forwarded-For, if you have a reverse proxy
goto done;
}
- if (strcmp(s->bucket_name, "auth") == 0)
+ if (g_conf->rgw_swift_auth_entry.size() &&
+ g_conf->rgw_swift_auth_entry.compare(s->bucket_name) == 0)
s->prot_flags |= RGW_REST_SWIFT_AUTH;
if (pos >= 0) {