MCPcopy Index your code
hub / github.com/gotify/server / tokenFromXGotifyHeader

Method tokenFromXGotifyHeader

auth/authentication.go:113–115  ·  view source on GitHub ↗
(ctx *gin.Context)

Source from the content-addressed store, hash-verified

111}
112
113func (a *Auth) tokenFromXGotifyHeader(ctx *gin.Context) string {
114 return ctx.Request.Header.Get(headerName)
115}
116
117func (a *Auth) tokenFromAuthorizationHeader(ctx *gin.Context) string {
118 const prefix = "Bearer "

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected