Commit 05161174 authored by Wim Van de Meerssche's avatar Wim Van de Meerssche
Browse files

restored check for authority when fed-api specifies project_name

parent b91a121c
......@@ -576,25 +576,10 @@ sub RegisterInternal($$)
}
my ($credential, $speaksfor);
if (defined($cred)) {
if (defined($project_name)) {
#don't check sub authority when project_name is defined
$credential = GeniCredential::CheckCredential($cred);
} else {
$credential = GeniCredential::CheckCredential($cred, $authority);
}
}
else {
if (defined($project_name)) {
#don't check sub authority when project_name is defined
($credential,$speaksfor) = GeniStd::CheckCredentials($creds);
#wvdemeer: AddUserCredWhenSpeaksForOnly automatically adds a user credential when only speaksfor is present and it is needed, allowed and possible.
# note on error handling: if the credential provided to it is a response, it will just return that response.
($credential, $speaksfor) = GeniStd::AddUserCredWhenSpeaksForOnly($credential, $speaksfor, $creds);
} else {
} else {
($credential,$speaksfor) = GeniStd::CheckCredentials($creds, $authority);
}
}
return $credential
if (GeniResponse::IsResponse($credential));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment