Categorygithub.com/dosco/graphjin/auth/v3
modulepackage
3.0.38
Repository: https://github.com/dosco/graphjin.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

HeaderHandler is a middleware that checks for a header value.
IsAuth returns true if the context contains a user ID.
JwtHandler is a middleware that checks for a JWT token in the cookie or the authorization header.
NewAuth returns a new auth handler.
NewAuthHandlerFunc returns a HandlerFunc based on the provided config.
NoAuth returns a handler that does not perform any authentication.
RailsCookieHandler returns a handler that authenticates using a Rails session cookie.
RailsHandler returns a handler that authenticates using a Rails session cookie.
RailsMemcacheHandler returns a handler that authenticates using a Rails session cookie.
RailsRedisHandler returns a handler that authenticates using a Rails session cookie.
SimpleHandler is a simple auth handler that sets the user ID, provider and role.
UserID returns the user ID from the context.
UserIDInt returns the user ID from the context as an int.

# Variables

No description provided by the author

# Structs

Auth struct contains authentication related config values used by the GraphJin service.
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author