Skip to content

Validate auth and enforce ACLs for HTTP-based scitoken requests

License

Notifications You must be signed in to change notification settings

WIPACrepo/scitoken-http-auth

Repository files navigation

scitoken-http-auth

Validate auth and enforce ACLs for HTTP-based scitoken requests. Ideal for answering nginx auth requests.

Because this is meant for non-interactive use, failures only return 403.

On success, these http headers are returned:

  • REMOTE_USER: the sub in the token (required)
  • X_UID: the posix.uid in the token (optional)
  • X_GID: the posix.gid in the token (optional)

UID and GID are useful for POSIX filesystem access, for example https://unix.stackexchange.com/a/489744.

Configuration

Primary configuration is via environment variables:

  • ISSUERS: the scitoken issuers, comma-separated
  • AUDIENCE: the scitoken audience
  • BASE_PATH: the base path of the server, before any authorized paths in the token