Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var App = gorf.BaseApp{ Title: "Auth", Info: "Gorf Auth handler app", RouteHandler: Urls, SetUpHandler: setup, }
View Source
var Settings = authSettings{ ClientId: "", UserPool: "", Region: "", UserObjId: "username", AuthMiddleware: nil, JwkRes: nil, }
Functions ¶
func AuthenticationRequiredMiddleware ¶ added in v0.0.9
func ProtectedApi ¶ added in v0.0.9
Types ¶
type CognitoJwks ¶ added in v0.0.9
type CognitoJwks struct{}
func (*CognitoJwks) JwksUrl ¶ added in v0.0.9
func (c *CognitoJwks) JwksUrl() string
type JwkRes ¶ added in v0.0.9
type JwkRes interface {
JwksUrl() string
}
func NewCognitoJwks ¶ added in v0.0.9
func NewCognitoJwks() JwkRes
type JwtAuthMiddleware ¶ added in v0.0.9
func NewJwtMiddleware ¶ added in v0.0.9
func NewJwtMiddleware(database gorf.Db, jwkRes JwkRes) *JwtAuthMiddleware
func (*JwtAuthMiddleware) Authenticate ¶ added in v0.0.9
func (*JwtAuthMiddleware) ParseAuthHeader ¶ added in v0.0.9
func (m *JwtAuthMiddleware) ParseAuthHeader(ctx *gin.Context) error
func (*JwtAuthMiddleware) ParseJwtToken ¶ added in v0.0.9
func (m *JwtAuthMiddleware) ParseJwtToken(ctx *gin.Context) error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.