flask

package
v0.0.97 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"

Variables

View Source
var ALPHABET_REVERSE = gut.AlphaReverseMap(ALPHABET, nil)

Functions

This section is empty.

Types

type FlaskAuth

type FlaskAuth struct {
	AppSecretKey string
	LogCookies   bool
}

func (*FlaskAuth) DecodeSessionCookie

func (f *FlaskAuth) DecodeSessionCookie(base64value string) (out gut.StringMap, err error)

*

  • Decodes the session cookie as it is stored by flask auth.
  • This has a few parts (and plugin points):

func (*FlaskAuth) DecodeSessionUserId

func (f *FlaskAuth) DecodeSessionUserId(userid string) (out []interface{})

func (*FlaskAuth) NormalizedSecretKey

func (f *FlaskAuth) NormalizedSecretKey() string

func (*FlaskAuth) ParseSignedCookieValue

func (f *FlaskAuth) ParseSignedCookieValue(value string) (parts []interface{}, sessmap gut.StringMap)

Jump to

Keyboard shortcuts

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