Documentation ¶
Index ¶
- Variables
- func AccessForbidden(logger *zap.Logger, httpStatus int, page string, tags map[string]string, ...) func(wrt http.ResponseWriter, req *http.Request) context.Context
- func CustomSignInPage(logger *zap.Logger, page string, tags map[string]string, ...) func(wrt http.ResponseWriter, authURL string)
- func EncryptToken(scope *models.RequestScope, rawToken string, encKey string, tokenType string, ...) (string, error)
- func GetVersion() string
- func RedirectToAuthorization(logger *zap.Logger, noRedirects bool, cookManager *cookie.Manager, ...) func(wrt http.ResponseWriter, req *http.Request) context.Context
- func RedirectToURL(logger *zap.Logger, url string, wrt http.ResponseWriter, req *http.Request, ...) context.Context
- type GoogleProvider
- type KeycloakProvider
- type OauthProxies
- type ReverseProxy
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Version = ""
)
Functions ¶
func AccessForbidden ¶
func AccessForbidden( logger *zap.Logger, httpStatus int, page string, tags map[string]string, tmpl *template.Template, ) func(wrt http.ResponseWriter, req *http.Request) context.Context
AccessForbidden redirects the user to the forbidden page
func CustomSignInPage ¶
func CustomSignInPage( logger *zap.Logger, page string, tags map[string]string, tmpl *template.Template, ) func(wrt http.ResponseWriter, authURL string)
renders CustomSignInPage
func EncryptToken ¶
func EncryptToken( scope *models.RequestScope, rawToken string, encKey string, tokenType string, writer http.ResponseWriter, ) (string, error)
func RedirectToAuthorization ¶
func RedirectToAuthorization( logger *zap.Logger, noRedirects bool, cookManager *cookie.Manager, skipTokenVerification bool, noProxy bool, baseURI string, oAuthURI string, allowedQueryParams map[string]string, defaultAllowedQueryParams map[string]string, ) func(wrt http.ResponseWriter, req *http.Request) context.Context
RedirectToAuthorization redirects the user to authorization handler
Types ¶
type GoogleProvider ¶
type GoogleProvider string
type KeycloakProvider ¶
type KeycloakProvider string
type OauthProxies ¶
type ReverseProxy ¶
type ReverseProxy interface {
ServeHTTP(rw http.ResponseWriter, req *http.Request)
}
ReverseProxy is a wrapper
Click to show internal directories.
Click to hide internal directories.