Skip to main content

extract_rbac_token

Function extract_rbac_token 

Source
fn extract_rbac_token(
    headers: &HashMap<String, Vec<String>>,
    query: &HashMap<String, Vec<String>>,
) -> Option<String>
Expand description

Extracts the rbac token from (in APISIX precedence order): the rbac_token query argument, the Authorization header, the X-RBAC-Token header, then the x-rbac-token cookie.