Skip to content

Commit

Permalink
request server default fix
Browse files Browse the repository at this point in the history
  • Loading branch information
woodseowl committed Oct 31, 2024
1 parent 06b9f98 commit 0a69859
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CUAuth/DataObjects/ShibIdentity.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public static function getRemoteUserId(Request $request): ?string
$remote_user_override = app()->isLocal() ? config('cu-auth.remote_user_override') : null;

// Apache mod_shib populates the remote user variable if someone is logged in.
return $request->server(config('cu-auth.apache_shib_user_variable'), $remote_user_override);
return $request->server(config('cu-auth.apache_shib_user_variable')) ?: $remote_user_override;
}

public function isCornellIdP(): bool
Expand Down

0 comments on commit 0a69859

Please sign in to comment.