# Functions
APIMiddleware authenticates API requests.
BuildUserFromGithubUser handles the checks needed to build a brizo user from possible github user attributes.
CLIFlags return the auth configuration CLI flags.
CreateJWTToken creates a JWT token for the provided user.
CreateNewGithubUser takes oauth response values and creates a new Brizo user.
CreateUser creates a Brizo specific user without forcing any validation on the input.
DeleteInvitedUser will delete an existing invitee based on his/her github username.
GenerateRandomString will provide a [0-9a-Z] string of a specified length.
GetInvitedUsers will provide a slice of all of the Users who have been invited to Brizo, but have yet to authenticate with Github.
GetOAuthStateString provides a randomized string to prevent csrf.
GithubUserAllowed will determine if the provided username from Github is allowed.
HydrateOAuthConfig is used to set the ClientID & ClientSecret at runtime so that we can load them via the cli config values.
IsFirstUser will determine if any users have registered yet.
UpdateUser updates an existing Brizo user based on his/her username.
ValidateJWTToken determines if the provided token is valid.
ValidatePersonalAccessToken check that a valid access token exists in the database.
# Structs
CreateUserForm represents a new user form.
OAuthCallbackForm represents a Github OAuth callback.
User represents a Brizo user.
ValidateJWTForm represents a json request to validate a token.