From f262e6f183631456e2ea420cc04b77326e5175d1 Mon Sep 17 00:00:00 2001 From: Pierre Hubert Date: Fri, 28 Apr 2023 09:39:52 +0000 Subject: [PATCH] First issue with Owncloud OIDC client (#110) OwnCloud 10.12.1 authentication fails with message "Authentication method unknown!" Reviewed-on: https://gitea.communiquons.org/pierre/BasicOIDC/pulls/110 --- src/controllers/openid_controller.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/openid_controller.rs b/src/controllers/openid_controller.rs index c3127cd..4140c4e 100644 --- a/src/controllers/openid_controller.rs +++ b/src/controllers/openid_controller.rs @@ -272,7 +272,7 @@ pub async fn token( } // Basic authentication - (None, None, Some(v)) => { + (_, None, Some(v)) => { let token = match v.to_str().unwrap_or_default().strip_prefix("Basic ") { None => { return Ok(error_response( @@ -309,7 +309,7 @@ pub async fn token( return Ok(error_response( &query, "invalid_request", - "Authentication method unknown!", + "Client authentication method on token endpoint unsupported!", )); } };