ctxUtils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientMetaData

func ClientMetaData(ctx *fiber.Ctx) *model.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 GetOIDCFlow

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

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

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