Skip to content

Commit

Permalink
fix(auth): fix auth ak value error (#674)
Browse files Browse the repository at this point in the history
  • Loading branch information
RWDai authored Mar 29, 2024
1 parent 83061e4 commit 3b3daa9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions support/auth/src/serv/auth_kernel_serv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ async fn ident(req: &mut AuthReq, config: &AuthConfig, cache_client: &TardisCach
roles: None,
groups: None,
own_paths: Some(own_paths),
ak: Some(ak_authorization.to_string()),
ak: Some(ak.to_string()),
})
} else if let Some(ak_authorization) = get_webhook_ak_key(req, config) {
let (req_date, ak, signature) = self::parsing_base_ak(&ak_authorization, req, config, true).await?;
Expand Down Expand Up @@ -189,7 +189,7 @@ async fn ident(req: &mut AuthReq, config: &AuthConfig, cache_client: &TardisCach
roles: Some(roles),
groups: Some(context.groups),
own_paths: Some(own_paths.to_string()),
ak: Some(ak_authorization.to_string()),
ak: Some(ak.to_string()),
})
} else {
Err(TardisError::forbidden(
Expand Down

0 comments on commit 3b3daa9

Please sign in to comment.