Add Authenticate method to handle external peer authentication

This commit is contained in:
netkas 2025-01-10 18:09:47 -05:00
parent bed4e10fe2
commit 9d9a4b46b3
3 changed files with 70 additions and 5 deletions

View file

@ -55,7 +55,11 @@
$flags = [];
// TODO: Update this to support `host` peers
if($peer->isEnabled())
if($peer->isExternal())
{
$flags[] = SessionFlags::AUTHENTICATION_REQUIRED;
}
else if($peer->isEnabled())
{
$flags[] = SessionFlags::AUTHENTICATION_REQUIRED;