pub fn classify_token(biscuit: &Biscuit) -> TokenClassificationExpand description
Classify a token by analyzing its structure and contents
This function examines a Biscuit token and extracts:
- Token type (identity vs authorization)
- Token structure (base, delegated, service chain, etc.)
- All revocation IDs with their roles
- Subject, resource, operation (as applicable)
§Arguments
biscuit- The Biscuit token to classify
§Returns
TokenClassification- Complete classification of the token