Documentation ¶
Index ¶
- func DeniedResponse(envoystatus envoy_type.StatusCode, rpcstatusCode rpc.Code, msg string) *envoy_auth.CheckResponse
- func FilterJWT(token string) (bool, error)
- func GenAuthdUser(uid, token string) []*envoy_core.HeaderValueOption
- func GenGuestUser() []*envoy_core.HeaderValueOption
- func GetClaim(token string) (*string, error)
- func OKResponse(headers []*envoy_core.HeaderValueOption) *envoy_auth.CheckResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeniedResponse ¶
func DeniedResponse(envoystatus envoy_type.StatusCode, rpcstatusCode rpc.Code, msg string) *envoy_auth.CheckResponse
TODO: use denied response, as this is currently unused.
func GenAuthdUser ¶
func GenAuthdUser(uid, token string) []*envoy_core.HeaderValueOption
Adds Authorized user to header value
func GenGuestUser ¶
func GenGuestUser() []*envoy_core.HeaderValueOption
Adds Guest user to header value if not logged in
func OKResponse ¶
func OKResponse(headers []*envoy_core.HeaderValueOption) *envoy_auth.CheckResponse
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.