Documentation ¶
Index ¶
- Constants
- func ExtractJwt(r *http.Request) (string, bool)
- func NewAuthenticationMiddleware(addon *gonnect.Addon, skipQsh bool) func(h http.Handler) http.Handler
- func NewRequestMiddleware(addon *gonnect.Addon, verifiedParameters map[string]string) func(h http.Handler) http.Handler
- func NewTokenMiddleware(addon *gonnect.Addon) func(h http.Handler) http.Handler
- func NewVerifyInstallationMiddleware(addon *gonnect.Addon) func(h http.Handler) http.Handler
- func ValidateQshFromRequest(claims jwt.MapClaims, r *http.Request, addon *gonnect.Addon, skipQsh bool) bool
- type AuthenticationMiddleware
- type RequestMiddleware
- type TokenMiddleware
- type VerifyInstallationMiddleware
Constants ¶
View Source
const AUTH_HEADER = "authorization"
View Source
const (
CONNECT_INSTALL_KEYS_CDN_URL = "https://connect-install-keys.atlassian.com"
)
View Source
const JWT_PARAM = "jwt"
Variables ¶
This section is empty.
Functions ¶
func NewRequestMiddleware ¶
func NewTokenMiddleware ¶
Types ¶
type AuthenticationMiddleware ¶
type AuthenticationMiddleware struct {
// contains filtered or unexported fields
}
func (AuthenticationMiddleware) ServeHTTP ¶
func (h AuthenticationMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request)
type RequestMiddleware ¶
type RequestMiddleware struct {
// contains filtered or unexported fields
}
func (RequestMiddleware) ServeHTTP ¶
func (h RequestMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request)
type TokenMiddleware ¶
type TokenMiddleware struct {
// contains filtered or unexported fields
}
func (TokenMiddleware) ServeHTTP ¶
func (h TokenMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request)
type VerifyInstallationMiddleware ¶
type VerifyInstallationMiddleware struct {
// contains filtered or unexported fields
}
func (VerifyInstallationMiddleware) ServeHTTP ¶
func (h VerifyInstallationMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.