controllers

package
v0.0.0-...-ef79350 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseJWT

func ParseJWT(tokenString string) (bool, string)

func ParseJWTNone

func ParseJWTNone(tokenString string) (bool, jwtNoneResponse)

Types

type App

type App struct {
	*revel.Controller
}

func (App) Auth1

func (c App) Auth1() revel.Result

func (App) Auth1_Login

func (c App) Auth1_Login(jwt string) revel.Result

func (App) Bypass

func (c App) Bypass() revel.Result

func (App) ClientSide

func (c App) ClientSide(hash string) revel.Result

func (App) Expired_JWT

func (c App) Expired_JWT() revel.Result

func (App) Expired_JWT_Login

func (c App) Expired_JWT_Login(username, password string) revel.Result

func (App) Index

func (c App) Index() revel.Result

func (App) JWT_None

func (c App) JWT_None() revel.Result

func (App) JWT_None_Check

func (c App) JWT_None_Check() revel.Result

func (App) Leaky_JWT

func (c App) Leaky_JWT() revel.Result

func (App) Leaky_JWT_Login

func (c App) Leaky_JWT_Login(username, password string) revel.Result

func (App) Timing

func (c App) Timing() revel.Result

func (App) Timing_Login

func (c App) Timing_Login(username, password string) revel.Result

func (App) UserAgent

func (c App) UserAgent() revel.Result

func (App) UserAgent_Ping

func (c App) UserAgent_Ping() revel.Result

type MyClaimsType

type MyClaimsType struct {
	*jwt.StandardClaims
	User  string `json:"user"`
	Level string `json:"level"`
}

type SigningMethodNone

type SigningMethodNone struct {
}

func (SigningMethodNone) Alg

func (j SigningMethodNone) Alg() string

func (SigningMethodNone) Sign

func (j SigningMethodNone) Sign(signingString string, key interface{}) (string, error)

func (SigningMethodNone) Verify

func (j SigningMethodNone) Verify(signingString, signature string, key interface{}) error

Jump to

Keyboard shortcuts

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