Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateHostname ¶
func ValidateUrl ¶
ValidateUrl returns a validated version of `originUrl` with a scheme prepended (by default http://). Note: when originUrl contains a scheme, the path is removed:
ValidateUrl("https://localhost:8080/api/") => "https://localhost:8080"
but when it does not, the path is preserved:
ValidateUrl("localhost:8080/api/") => "http://localhost:8080/api/"
This is arguably a bug, but changing it might break some cloudflared users.
Types ¶
type Access ¶
type Access struct {
// contains filtered or unexported fields
}
Access checks if a JWT from Cloudflare Access is valid.
func NewAccessValidator ¶
Click to show internal directories.
Click to hide internal directories.