Add proof-of-concept server intercom service through auth server

This commit is contained in:
NG (Graham) committed 2025-10-26 15:43:51 -04:00
1 parent 3e09a5e554
commit b3ad2c3758
28 files changed
+613 -54

No files matched your search

+4 -4
View File
@@ -26,16 +26,16 @@ impl IntercomAuth {
if bearer.to_lowercase() == "internal" || bearer.to_lowercase() == "bearer" {
self.validate_token(token, salt)?;
} else {
return Err(super::IntercomOpError::BadHeader);
return Err(IntercomOpError::Unauthorized);
}
} else {
return Err(super::IntercomOpError::BadHeader);
return Err(IntercomOpError::BadHeader);
}
} else {
return Err(super::IntercomOpError::BadHeader);
return Err(IntercomOpError::BadHeader);
}
} else {
return Err(super::IntercomOpError::Unauthorized);
return Err(IntercomOpError::Unauthorized);
}
Ok(())
}