update dependencies

This commit is contained in:
Paul Zinselmeyer 2025-01-12 22:37:30 +01:00
parent e86842c104
commit 74551fb479
Signed by: pfzetto
GPG key ID: B471A1AF06C895FD
5 changed files with 51 additions and 48 deletions

View file

@ -64,10 +64,11 @@ async fn authenticated(claims: OidcClaims<EmptyAdditionalClaims>) -> impl IntoRe
format!("Hello {}", claims.subject().as_str())
}
#[axum::debug_handler]
async fn maybe_authenticated(
claims: Option<OidcClaims<EmptyAdditionalClaims>>,
claims: Result<OidcClaims<EmptyAdditionalClaims>, axum_oidc::error::ExtractorError>,
) -> impl IntoResponse {
if let Some(claims) = claims {
if let Ok(claims) = claims {
format!(
"Hello {}! You are already logged in from another Handler.",
claims.subject().as_str()