Re-exports§
pub use crate::authorization_expression::AuthorizationExpression;
Modules§
Structs§
- Access
Evaluator - Authorizations
- Lexer
Lexer
is a lexical analyzer (tokenizer) for authorization expressions.- Parser
Parser
is used to parse an expression and return anAuthorizationExpression
-based tree.
Enums§
- Json
Error - Parser
Error ParserError
is returned when the parser encounters an error.
Functions§
- check_
authorization - Checks if the given set of access tokens authorizes access to the resource which protection is described by the given expression.
- check_
authorization_ csv - Checks if the given set of access tokens authorizes access to the resource which protection is described by the given expression.
- expression_
to_ json - expression_
to_ json_ string - prepare_
authorization_ csv