Implement federated login; #123

This commit is contained in:
NG (Graham) authored and NGnius committed 2026-07-05 20:38:17 +00:00
1 parent 6601c188d0
commit 2adf8249bb
35 files changed
+1466 -121

No files matched your search

+2 -1
View File
@@ -4,7 +4,8 @@ use actix_web::{rt, web::{Payload, Data, Path, Json}, Error, HttpRequest, HttpRe
#[get("/intercom/.oj_services/{name}")]
pub async fn services_ws(req: HttpRequest, stream: Payload, auth: Data<super::IntercomAuth>, reg: Data<super::Users>, name: Path<String>) -> Result<HttpResponse, Error> {
auth.validate(&req, &format!(".oj_services/{}", name))?;
log::debug!("intercom/.oj_services name is {}", name);
auth.validate(&req, &format!(".oj_services/{}", urlencoding::encode(&*name)))?;
let (res, mut session, _stream) = actix_ws::handle(&req, stream)?;
/*let mut stream = stream