Crate authorization_derive

Crate authorization_derive 

Source

Derive Macrosยง

ApiKey
The derive macro #[derive(ApiKey)] is used to implement the Authorization trait for a struct.
The trait will add ApiKey authorization to the Api.
Authorization
The derive macro #[derive(Authorization)] is used to implement the Authorization trait by default for a struct.
The trait will not add any authorization to the Api by default.
Basic
The derive macro #[derive(Basic)] is used to implement the Authorization trait for a struct.
The trait will add Basic authorization to the Api.
Bearer
The derive macro #[derive(Bearer)] is used to implement the Authorization trait for a struct.
The trait will add Bearer authorization to the Api.
Keycloak
The derive macro #[derive(Keycloak)] is used to implement the Authorization trait for a struct.
The trait will add the AuthorizationType authorization to the Api and will use the Keycloak service.
OIDC
The derive macro #[derive(OIDC)] is used to implement the Authorization trait for a struct.
The trait will add OIDC authorization to the Api.
Oauth2
The derive macro #[derive(Oauth2)] is used to implement the Authorization trait for a struct.
The trait will add OAuth2 authorization to the Api.