Documentation ¶
Index ¶
Constants ¶
View Source
const CookieName = "pion-session"
Variables ¶
View Source
var ( // TODO Use a KV-backed session store CookieStore = sessions.NewCookieStore(authnKey, encryptionKey) )
Functions ¶
func Create ¶
func Create(c echo.Context, userInfo *multi_tenant.UserInfo) error
Create generates a new authenticated session for given username
func GetUserInfo ¶
func GetUserInfo(c echo.Context) (*multi_tenant.UserInfo, error)
GetUserInfo extracts userInfo object from the server session
func Validate ¶
func Validate(next echo.HandlerFunc) echo.HandlerFunc
Validate is the middleware to check if attached cookie in the request is valid
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.