auth

package
v0.0.0-...-d9c4052 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2014 License: GPL-3.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EraseExpiredTokens

func EraseExpiredTokens(conn interfaces.Conn) error

EraseExpiredTokens removes all expired tokens from the database

func GetRequestToken

func GetRequestToken(r *http.Request, isAccessToken bool, s *sessions.Session) (string, models.TokenType)

GetRequestToken returns the token associated with the request

func GetRequestUser

func GetRequestUser(r *http.Request, conn interfaces.Conn, s *sessions.Session) (*models.User, bool)

GetRequestUser returns the user associated with the request

func IsTokenValid

func IsTokenValid(tokenID string, tokenType models.TokenType, conn interfaces.Conn) (bool, bson.ObjectId)

IsTokenValid returns if the provided token is a valid token

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL