Documentation ¶
Index ¶
Constants ¶
View Source
const AuthorizationBasicScheme = "Basic"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticationFilter ¶
type AuthenticationFilter func(next AuthenticationHandler) AuthenticationHandler
AuthenticationFilter It's the part of security filter chain
func BasicAuthSecurityFilter ¶
func BasicAuthSecurityFilter() (AuthenticationFilter, error)
func JwtAuthSecurityFilter ¶
func JwtAuthSecurityFilter(props *config.JwtSecurityProperties) (AuthenticationFilter, error)
type AuthenticationHandler ¶
type AuthenticationHandler func(w http.ResponseWriter, r *http.Request) authen.Authentication
AuthenticationHandler Handler function for authentication filter
nil }return
func CreateAuthenticationHandler ¶
func CreateAuthenticationHandler(filters []AuthenticationFilter, stoppingHandler AuthenticationHandler) AuthenticationHandler
CreateAuthenticationHandler Creates the filter chain, and returns the authentication handler
Click to show internal directories.
Click to hide internal directories.