middleware

package
v0.0.0-...-93edf92 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2018 License: BSD-3-Clause Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthenticationRequired

func AuthenticationRequired() gin.HandlerFunc

AuthenticationRequired guards against unauthenticated sessions

func AuthorizationRequired

func AuthorizationRequired() gin.HandlerFunc

AuthorizationRequired guards against any unauthorized session

A user must either be a guest or authenticated via OAuth

func CORS

func CORS(allowedOrigins []string) gin.HandlerFunc

CORS handles cross origin resource security header stuffs

func GuestsOnly

func GuestsOnly() gin.HandlerFunc

GuestsOnly guards against unauthorized guest sessions

Types

This section is empty.

Jump to

Keyboard shortcuts

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