{"modulePath":"github.com/MG-RAST/SHock","version":"v0.9.29","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package basic\n\nPackage basic implements basic auth decoding and self contained user authentication\n\n## Functions\n\n```go\nfunc Auth(header string) (u *user.User, err error)\n```\nAuth takes the request authorization header and returns user\n\n```go\nfunc DecodeHeader(header string) (username string, password string, err error)\n```\nDecodeHeader takes the request authorization header and returns username and password if it is correctly encoded.\n\n","path":"github.com/MG-RAST/SHock/shock-server/auth/basic","name":"basic","synopsis":"Package basic implements basic auth decoding and self contained user authentication","isRedistributable":true}
