1
0
mirror of https://git.ngram.ca/OpenJam/rc-servers synced 2026-08-23 23:08:52 +00:00

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

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

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(())
}