Documentation ¶
Index ¶
- Constants
- func CheckOriginHeader(h *http.Header, r *http.Request, validate bool) (uint32, error)
- func ExtractClaims(tk string) (*auth.Claims, error)
- func GetDomainsListType() ([]string, int)
- func GetDomainsType() int
- func ValidateAndGetClaims(w http.ResponseWriter, r *http.Request, a proto.AuthServer, p auth.Permission) (*auth.Claims, error)
- func ValidateAndGetToken(w http.ResponseWriter, r *http.Request, a proto.AuthServer, p auth.Permission) ([]byte, error)
- func ValidateDomain(domain string) error
Constants ¶
View Source
const ( DOMAINS_BLACKLIST = iota DOMAINS_WHITELIST DOMAINS_NIL )
Variables ¶
This section is empty.
Functions ¶
func CheckOriginHeader ¶
func GetDomainsListType ¶
func GetDomainsType ¶
func GetDomainsType() int
func ValidateAndGetClaims ¶
func ValidateAndGetClaims(w http.ResponseWriter, r *http.Request, a proto.AuthServer, p auth.Permission) (*auth.Claims, error)
func ValidateAndGetToken ¶
func ValidateAndGetToken(w http.ResponseWriter, r *http.Request, a proto.AuthServer, p auth.Permission) ([]byte, error)
func ValidateDomain ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.