mirror of
https://git.ngram.ca/OpenJam/rc-servers
synced 2026-08-23 23:08:52 +00:00
Clippy fixes for #123
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
use actix_web::{get, web::{Data, Json}};
|
||||
use oj_rc_core::persist::user::federation::DiscoveryMetadata;
|
||||
|
||||
const OAUTH_AUTH_URL: &'static str = "authenticate/oauth2/auth";
|
||||
const OAUTH_JWKS_URL: &'static str = "authenticate/oauth2/jwks";
|
||||
const OAUTH_TOKEN_URL: &'static str = "authenticate/oauth2/token";
|
||||
const OAUTH_AUTH_URL: &str = "authenticate/oauth2/auth";
|
||||
const OAUTH_JWKS_URL: &str = "authenticate/oauth2/jwks";
|
||||
const OAUTH_TOKEN_URL: &str = "authenticate/oauth2/token";
|
||||
|
||||
#[get("/.well-known/openid-configuration")]
|
||||
pub async fn get_openid_configuration(server_config: Data<oj_rc_core::persist::config::ServerConfig>) -> Json<DiscoveryMetadata> {
|
||||
|
||||
@@ -4,7 +4,7 @@ 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/{}", urlencoding::encode(&*name)))?;
|
||||
auth.validate(&req, &format!(".oj_services/{}", urlencoding::encode(&name)))?;
|
||||
let (res, mut session, _stream) = actix_ws::handle(&req, stream)?;
|
||||
|
||||
/*let mut stream = stream
|
||||
|
||||
Reference in New Issue
Block a user