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:
@@ -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(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user