auth

package
v0.11.91 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAPIPath

func IsAPIPath(url string) bool

func SignedInID

func SignedInID(c *macaron.Context, sess session.Store) (_ int64, isTokenAuth bool)

SignedInID returns the id of signed in user, along with one bool value which indicates whether user uses token authentication.

func SignedInUser

func SignedInUser(ctx *macaron.Context, sess session.Store) (_ *models.User, isBasicAuth bool, isTokenAuth bool)

SignedInUser returns the user object of signed in user, along with two bool values, which indicate whether user uses HTTP Basic Authentication or token authentication respectively.

Types

This section is empty.

Directories

Path Synopsis
Package ldap provide functions & structure to query a LDAP ldap directory For now, it's mainly tested again an MS Active Directory service, see README.md for more information
Package ldap provide functions & structure to query a LDAP ldap directory For now, it's mainly tested again an MS Active Directory service, see README.md for more information

Jump to

Keyboard shortcuts

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