{"modulePath":"github.com/CHESSComputing/Authz","version":"v0.4.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package main\n\n## Variables\n\n```go\nvar StaticFs embed.FS\n```\ncontent is our static web server content.\n\n```go\nvar Verbose int\n```\nVerbose flag to use\n\n## Functions\n\n```go\nfunc AttributesHandler(c *gin.Context)\n```\nAttributesHandler provides access to GET /attrs end-point\n\n```go\nfunc ClientAuthHandler(c *gin.Context)\n```\nClientAuthHandler provides kerberos authentication for CLI requests func ClientAuthHandler(w http.ResponseWriter, r \\*http.Request) {\n\n```go\nfunc KAuthHandler(c *gin.Context)\n```\nKAuthHandler provides KAuth authentication to our app func KAuthHandler(w http.ResponseWriter, r \\*http.Request) {\n\n```go\nfunc LoginHandler(w http.ResponseWriter, r *http.Request)\n```\nLoginHandler handlers Login requests\n\n```go\nfunc Server()\n```\nServer defines our HTTP server\n\n```go\nfunc TokenHandler(c *gin.Context)\n```\nTokenHandler provides access to GET /oauth/token end-point\n\n```go\nfunc TrustedClientHandler(c *gin.Context)\n```\nTrustedClientHandler perform trusted client check\n\n```go\nfunc TrustedHandler(c *gin.Context)\n```\nTrustedHandler handles request for trusted client\n\n## Types\n\n```go\ntype DocsParams struct {\n\tLogin string `json:\"login\" uri:\"login\" binding:\"required\"`\n}\n```\n\n```go\ntype TrustedClientInfo struct {\n\tUser string   `json:\"user\"`\n\tIPs  []string `json:\"ips\"`\n\tMACs []string `json:\"macs\"`\n}\n```\nTrustedClientInfo represents trusted client system info to be send to /trusted\\_client end-point via POST HTTP request\n\n```go\ntype User struct {\n\tID         uint   `json:\"id\"`\n\tLOGIN      string `json:\"login\"`\n\tFIRST_NAME string `json:\"first_name\"`\n\tLAST_NAME  string `json:\"last_name\"`\n\tPASSWORD   string `json:\"password\"`\n\tEMAIL      string `json:\"email\"`\n\tUPDATED    int64  `json:\"updated\"`\n\tCREATED    int64  `json:\"created\"`\n}\n```\nUser represents user table\n\n```go\ntype UserParams struct {\n\tLogin    string `json:\"login\" uri:\"login\" binding:\"required\"`\n\tPassword string `json:\"password\" uri:\"password\" binding:\"required\"`\n}\n```\n\n","path":"github.com/CHESSComputing/Authz","name":"main","synopsis":"","isRedistributable":true}
