Documentation ¶
Index ¶
- func ClientMetaData(ctx *fiber.Ctx) *api.ClientMetaData
- func GetAuthHeaderToken(ctx *fiber.Ctx) (token string)
- func GetGrantType(ctx *fiber.Ctx) (model.GrantType, error)
- func GetGrantTypeStr(ctx *fiber.Ctx) (string, error)
- func GetID(ctx *fiber.Ctx) (uuid.UUID, error)
- func GetMytoken(ctx *fiber.Ctx) (*universalmytoken.UniversalMytoken, bool)
- func GetMytokenStr(ctx *fiber.Ctx) string
- func GetOIDCFlow(ctx *fiber.Ctx) (model.OIDCFlow, error)
- func GetOIDCFlowStr(ctx *fiber.Ctx) (string, error)
- func Params(ctx *fiber.Ctx, key string, defaultValue ...string) string
- func RenderErrorPage(ctx *fiber.Ctx, status int, errorMsg string, optionalErrorHeading ...string) error
- func RenderExtendedErrorPage(ctx *fiber.Ctx, status int, ...) error
- func RenderInternalServerErrorPage(ctx *fiber.Ctx, err error) error
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 ¶
GetGrantType returns the model.GrantType for a fiber.Ctx by checking the query as well as the request body (json)
func GetGrantTypeStr ¶
GetGrantTypeStr returns the grant type string for a fiber.Ctx by checking the query as well as the request body (json)
func GetID ¶ added in v0.10.0
GetID returns the id for a fiber.Ctx by checking the url param, query as well as the request body (json)
func GetMytoken ¶
func GetMytoken(ctx *fiber.Ctx) (*universalmytoken.UniversalMytoken, bool)
GetMytoken checks a fiber.Ctx for a mytoken and returns a token object
func GetMytokenStr ¶
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 ¶
GetOIDCFlow returns the model.OIDCFlow for a fiber.Ctx by checking the query as well as the request body (json)
func GetOIDCFlowStr ¶
GetOIDCFlowStr returns the oidc flow string for a fiber.Ctx by checking the query as well as the request body (json)
func Params ¶ added in v0.10.0
Params is a wrapper around ctx.Params that also url decodes the value
func RenderErrorPage ¶ added in v0.10.0
func RenderErrorPage(ctx *fiber.Ctx, status int, errorMsg string, optionalErrorHeading ...string) error
RenderErrorPage renders an error page
func RenderExtendedErrorPage ¶ added in v0.10.0
func RenderExtendedErrorPage( ctx *fiber.Ctx, status int, errorMsg, optionalErrorHeading, additionalHTML string, ) error
RenderExtendedErrorPage renders an error page with additional html content
func RenderInternalServerErrorPage ¶ added in v0.10.0
RenderInternalServerErrorPage renders an error page for a passed error as an internal server error
Types ¶
This section is empty.