Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,18 @@ protected function doLogin($unique_id, ?AccountInterface $account = NULL) {

if ($login_gov && $account && !$account->hasRole('non_sso')) {
$this->foiaLogger->warning(
'FOIA rule: login blocked for uid @uid because CSP attribute is present and user lacks non_sso role.',
'Login.gov login blocked for uid @uid because CSP attribute is present and user lacks non_sso role.',
['@uid' => $account->id()]
);

throw new AccessDeniedHttpException('Login rejected due to FOIA Non-SSO policy.');
}
if ($csp_present) {
$this->foiaLogger->warning('SAML login allowed for uid @uid. CSP attribute: @csp.', [
'@uid' => $account->id(),
'@csp' => $attributes['CSP'],
]);
}

return parent::doLogin($unique_id, $account);
}
Expand Down
Loading