MCPcopy
hub / github.com/perkeep/perkeep / AuthMode

Method AuthMode

pkg/server/app/app.go:514–516  ·  view source on GitHub ↗

AuthMode returns the app handler's auth mode, which is also the auth that the app's client will be configured with. This mode should be registered with the server's auth modes, for the app to have access to the server's resources.

()

Source from the content-addressed store, hash-verified

512// app's client will be configured with. This mode should be registered with
513// the server's auth modes, for the app to have access to the server's resources.
514func (a *Handler) AuthMode() auth.AuthMode {
515 return a.auth
516}
517
518// AppConfig returns the optional configuration parameters object that the app
519// can request from the app handler. It can be nil.

Callers 1

setupHandlerMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected