{"modulePath":"github.com/hyperledger-firefly/common","version":"v1.6.7","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package basic\n\n## Constants\n\n```go\nconst (\n\t// BasicAuthConfigKey The name of the basic auth config section\n\tBasicAuthConfigKey = \"basic\"\n\t// PasswordFile The path to a file with the list of allowed users in htpasswd format with passwords hashed with bcrypt\n\tPasswordFile = \"passwordfile\"\n)\n```\n\n## Functions\n\n```go\nfunc Name() string\n```\n\n## Types\n\n```go\ntype Auth struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (a *Auth) Authorize(ctx context.Context, req *fftypes.AuthReq) error\n```\n\n```go\nfunc (a *Auth) Init(ctx context.Context, name string, config config.Section) error\n```\n\n```go\nfunc (a *Auth) InitConfig(config config.Section)\n```\n\n```go\nfunc (a *Auth) Name() string\n```\n\n","path":"github.com/hyperledger-firefly/common/pkg/auth/basic","name":"basic","synopsis":"","isRedistributable":true}
