Hessra Macros
Procedural macros for the Hessra authorization service SDK for Rust.
Overview
This crate provides procedural macros that simplify working with the Hessra authorization service. It is part of the hessra-sdk ecosystem.
Macros
request_authorization
The request_authorization macro wraps a function with authorization token request logic. It will request an authorization token for a given resource before executing the wrapped function.
use request_authorization;
// With client config parameter
async
// Using global configuration
async
authorize
The authorize macro validates that a token parameter is present in the function signature and can be used for authorization checks.
use authorize;
async
Features
axum- Enables integration with the Axum web framework
License
This project is licensed under the Apache License, Version 2.0 - see the LICENSE file for details.