Furumi: Added web ui with OIDC SSO
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "furumi-server"
|
||||
version = "0.3.0"
|
||||
version = "0.3.1"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
|
||||
@@ -295,7 +295,13 @@ pub async fn oidc_callback(
|
||||
|
||||
let token_response = match token_response {
|
||||
Ok(tr) => tr,
|
||||
Err(e) => return (StatusCode::INTERNAL_SERVER_ERROR, format!("OIDC error: {}", e)).into_response(),
|
||||
Err(e) => {
|
||||
tracing::error!("OIDC exchange code error: {:?}", e);
|
||||
if let openidconnect::RequestTokenError::ServerResponse(err) = &e {
|
||||
tracing::error!("OIDC Server returned error: {:?}", err);
|
||||
}
|
||||
return (StatusCode::INTERNAL_SERVER_ERROR, format!("OIDC error: {}", e)).into_response();
|
||||
}
|
||||
};
|
||||
|
||||
let id_token = match token_response.id_token() {
|
||||
|
||||
Reference in New Issue
Block a user