First issue with Owncloud OIDC client (#110)
All checks were successful
continuous-integration/drone/push Build is passing

OwnCloud 10.12.1 authentication fails with message "Authentication method unknown!"

Reviewed-on: #110
This commit is contained in:
Pierre HUBERT 2023-04-28 09:39:52 +00:00
parent e351c333fc
commit f262e6f183

View File

@ -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!",
));
}
};