Documentation ¶
Index ¶
Constants ¶
View Source
const WARDEN_FORMAT_ERROR = "warden user key format invalid"
Variables ¶
This section is empty.
Functions ¶
func DecodeRailsSession ¶
DecodeRailsSession takes a rails cookie, and the secret_key_base from your secrets.yml and decrypts the session as a string
func ExtractUserId ¶
ExtractUserId extracts User Id from the decrypted cookie Please note that it assumes that the model name is user
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.