package
0.0.0-20240819200130-a546e7f22392
Repository: https://github.com/enfabrica/enkit.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
Collection of utilities to more easily compose cookies.
No description provided by the author
No description provided by the author
No description provided by the author
Package providers provides functions to configure and use the providers supported out of the box by the enkit oauth library: google and github.
# Functions
CheckRedirect checks AuthData to see if its state warrants a redirect.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GetCredentials returns the credentials of a user extracted from an authentication cookie.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SetCredentials returns a context with the credentials of the user added.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
WithFactory configures a validation factory.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
Credentials structs are generally read from json files.
CredentialsCookie is what is encrypted within the authentication cookie returned to the browser or client.
No description provided by the author
Extractor is an object capable of extracting and verifying authentication information.
No description provided by the author
Flags defines the basic configuration parameters to run the oauth cycle.
No description provided by the author
No description provided by the author
LoginState represents the information passed to the oauth provider as state.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Redirector is an extractor capable of redirecting to an authentication server for login.
No description provided by the author
No description provided by the author
# Interfaces
An IAuthenticator is any object capable of performing authentication for a web server.
Verifier is an object capable of verifying an oauth2.Token after obtaining it.
# Type aliases
Authenticate parses the request received to authenticate the user.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author