Categorygithub.com/CHESSComputing/Authz
modulepackage
0.1.6
Repository: https://github.com/chesscomputing/authz.git
Documentation: pkg.go.dev

# README

Authz

build status go report card godoc

CHESS Authentication/authorization service

Example

# obtain kerberos ticket and put it into JSON

cat record.json
{
    "user": <your-user-name>,
    "ticket": <your kerberos ticket>,
    "scope": <read|write>
}

# create JSON payload
curl -X POST -H "Content-type: application/json" \
    -d./record.json http://localhost:8380/oath/authorize

# Functions

AttributesHandler provides access to GET /attrs end-point.
ClientAuthHandler provides kerberos authentication for CLI requests func ClientAuthHandler(w http.ResponseWriter, r *http.Request) {.
KAuthHandler provides KAuth authentication to our app func KAuthHandler(w http.ResponseWriter, r *http.Request) {.
LoginHandler handlers Login requests.
Server defines our HTTP server.
TokenHandler provides access to GET /oauth/token end-point.
TrustedHandler handles request for trusted client.

# Variables

content is our static web server content.

# Structs

No description provided by the author
User represents user table.
No description provided by the author