Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAccessToken ¶
GetAccessToken is used to fetch an access token from request context
func GetIsOAuth ¶
GetIsOAuth is used to fetch if used is auth from request context
Types ¶
type Key ¶
type Key string
Key is a special type used as a context key
const ( // JWT is the key used to read a JWT value from a context JWT Key = "JWT" // AccessToken is the key used to read an AccessToken value from a context AccessToken Key = "AccessToken" // IsOAuth is the key used to check if user is auth from a context IsOAuth Key = "IsOAuth" // RequestedProject is the key used to check requested project from a context RequestedProject Key = "RequestedProject" User Key = "User" )
Click to show internal directories.
Click to hide internal directories.