package
0.0.0-20250302012944-701c1ceec546
Repository: https://github.com/khulnasoft/devsecdb.git
Documentation: pkg.go.dev
# Functions
GenerateAccessToken generates an access token for web.
GenerateAPIToken generates an API token.
GenerateMFATempToken generates a temporary token for MFA.
No description provided by the author
No description provided by the author
GetUserIDFromMFATempToken returns the user ID from the MFA temp token.
IsAuthenticationAllowed returns whether the method is exempted from authentication.
New returns a new API auth interceptor.
# Constants
AccessTokenAudienceFmt is the format of the acccess token audience.
AccessTokenCookieName is the cookie name of access token.
DefaultTokenDuration is the default token expiration duration.
GatewayMetadataAccessTokenKey is the gateway metadata key for access token.
GatewayMetadataRequestOriginKey is the gateway metadata key for the request origin header.
GatewayMetadataUserIDKey is the gateway metadata key for user ID.
MFATempTokenAudienceFmt is the format of the MFA temp token audience.
UserIDCookieName is the cookie name of user ID.
# Structs
APIAuthInterceptor is the auth interceptor for gRPC server.
GatewayResponseModifier is the response modifier for grpc gateway.