ctxUtils

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientMetaData

func ClientMetaData(ctx *fiber.Ctx) *api.ClientMetaData

ClientMetaData returns the model.ClientMetaData for a given fiber.Ctx

func GetAuthHeaderToken

func GetAuthHeaderToken(ctx *fiber.Ctx) (token string)

GetAuthHeaderToken returns the Bearer token from the http authorization header

func GetGrantType

func GetGrantType(ctx *fiber.Ctx) (model.GrantType, error)

GetGrantType returns the model.GrantType for a fiber.Ctx by checking the query as well as the request body (json)

func GetGrantTypeStr

func GetGrantTypeStr(ctx *fiber.Ctx) (string, error)

GetGrantTypeStr returns the grant type string for a fiber.Ctx by checking the query as well as the request body (json)

func GetMytoken added in v0.2.0

func GetMytoken(ctx *fiber.Ctx) (*universalmytoken.UniversalMytoken, bool)

GetMytoken checks a fiber.Ctx for a mytoken and returns a token object

func GetMytokenStr added in v0.2.0

func GetMytokenStr(ctx *fiber.Ctx) string

GetMytokenStr checks a fiber.Ctx for a mytoken and returns the token string as passed to the request

func GetOIDCFlow

func GetOIDCFlow(ctx *fiber.Ctx) (model.OIDCFlow, error)

GetOIDCFlow returns the model.OIDCFlow for a fiber.Ctx by checking the query as well as the request body (json)

func GetOIDCFlowStr

func GetOIDCFlowStr(ctx *fiber.Ctx) (string, error)

GetOIDCFlowStr returns the oidc flow string for a fiber.Ctx by checking the query as well as the request body (json)

Types

This section is empty.

Jump to

Keyboard shortcuts

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