secure

package
v0.0.0-...-263c4a3 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2017 License: LGPL-3.0 Imports: 5 Imported by: 2

Documentation

Overview

Package secure provides authentication for the application.

The account details are kept in the database (model.Account). On log in, a copy of the account data is stored in an encrypted session cookie to authenticate requests for secured resources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authentication

func Authentication(r *http.Request) *model.Account

Authentication returns the client's account data from the encrypted cookie, which is regularly validated with the account's record in the database.

Call from a Handle wrapped in secure.Handle or secure.IfHandle.

Types

This section is empty.

Jump to

Keyboard shortcuts

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