Crate zino_auth

Crate zino_auth 

Source
Expand description

github crates-io docs-rs

Authentication and authorization for zino.

§Feature flags

The following optional features are available:

NameDescriptionDefault?
crypto-smEnables China’s Standards of Encryption Algorithms.No
jwtEnables the support for JSON Web Token.No
oidcEnables the support for OIDC via rauthy.No
opaEnables the support for OPA via regorus.No
sqidsEnables the support for sqids.No

Structs§

AccessKeyId
Access key ID.
Authentication
HTTP signature using HMAC.
BasicCredentials
Credentials for the HTTP basic authentication.
ClientCredentials
Credentials for the client authentication.
JwtClaimsjwt
JWT Claims.
RauthyClientoidc
The Rauthy client.
RegoEngineopa
Rego evaluation engine.
SecretAccessKey
Secrect access key.
SecurityToken
Security token.
SessionId
Session Identification URI. See the spec.
UserSession
Role-based user sessions.

Enums§

ParseSecurityTokenError
An error which can be returned when parsing a token.
ParseSessionIdError
An error which can be returned when parsing a SessionId.

Traits§

AuthorizationProvider
A server which provides authorization services.

Functions§

default_time_tolerancejwt
Returns the default time tolerance.
default_verification_optionsjwt
Returns the default verfication options.

Type Aliases§

JwtHmacKeyjwt
HMAC key type for JWT.