MCPcopy
hub / github.com/marmotedu/iam / AuthStrategy

Interface AuthStrategy

internal/pkg/middleware/auth.go:12–14  ·  view source on GitHub ↗

AuthStrategy defines the set of methods used to do resource authentication.

Source from the content-addressed store, hash-verified

10
11// AuthStrategy defines the set of methods used to do resource authentication.
12type AuthStrategy interface {
13 AuthFunc() gin.HandlerFunc
14}
15
16// AuthOperator used to switch between different authentication strategy.
17type AuthOperator struct {

Callers 3

installControllerFunction · 0.65
AuthFuncMethod · 0.65
installControllerFunction · 0.65

Implementers 5

AuthOperatorinternal/pkg/middleware/auth.go
CacheStrategyinternal/pkg/middleware/auth/cache.go
BasicStrategyinternal/pkg/middleware/auth/basic.go
JWTStrategyinternal/pkg/middleware/auth/jwt.go
AutoStrategyinternal/pkg/middleware/auth/auto.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…