package
0.0.0-20241114131613-732ec5ddb1fe
Repository: https://github.com/tnyim/jungletv.git
Documentation: pkg.go.dev

# Functions

BuildNonAuthorizedUser uses the specified components to return a User that is not backed by JWT claims.
No description provided by the author
No description provided by the author
No description provided by the author
NewJWTManager returns a new JWTManager.
NewThirdPartyAuthorizer returns a new initialized ThirdPartyAuthorizer.
ParseAPIPermissionLevel parses a protobuf permission level into a Permission Level.
ParsePermissionLevel parses a permission level into a PermissionLevel.
RecordAuthEvent records an auth event in the database.
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
must be the empty string.
No description provided by the author

# Variables

PermissionLevelOrder allows for checking which permission levels are more elevated; a higher value means higher privileges.
No description provided by the author

# Structs

JWTManager generates and verifies access tokens.
ThirdPartyAuthenticationCredentials are the credentials provided to a third party when the authorization process is approved by the user.
ThirdPartyAuthorizationProcess is the process for authorizing a third party to act on a user's behalf.
ThirdPartyAuthorizer is responsible for authorizing external systems to act on a user's behalf.
UserClaims is the claim type used.

# Interfaces

User represents an identity on the service.

# Type aliases

APIUserSerializer is a function that is able to return the protobuf representation of a user.
PermissionLevel represents the elevation of a user.