Skip to main content

try_extract_gssapi

Function try_extract_gssapi 

Source
pub async fn try_extract_gssapi(
    parts: &mut Parts,
    app: &Arc<AppState>,
) -> Option<Result<AuthResult, Response>>
Expand description

Attempt to extract and validate GSSAPI/SPNEGO credentials.

Returns:

  • Some(Ok(AuthResult)) — GSSAPI authentication succeeded
  • Some(Err(Response)) — Negotiate header present but invalid (401/403)
  • None — no Negotiate header present (try next auth method)