Fixed OIDC

This commit is contained in:
Ultradesu
2026-03-17 15:03:36 +00:00
parent 0f49d8d079
commit b761245fd0
5 changed files with 9 additions and 8 deletions

View File

@@ -104,7 +104,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
let svc = RemoteFileSystemServer::with_interceptor(remote_fs, auth.clone());
// Print startup info
println!("Furumi-ng Server listening on {}", addr);
println!("Furumi-ng Server v{} listening on {}", env!("CARGO_PKG_VERSION"), addr);
if args.no_tls {
println!("WARNING: TLS is DISABLED — traffic is unencrypted");
} else {

View File

@@ -180,6 +180,7 @@ pub async fn oidc_init(
ClientId::new(client_id),
Some(ClientSecret::new(client_secret)),
)
.set_auth_type(openidconnect::AuthType::RequestBody)
.set_redirect_uri(RedirectUrl::new(redirect)?);
let mut session_secret = vec![0u8; 32];