Categorygithub.com/dmwm/cmsauth
modulepackage
0.0.4
Repository: https://github.com/dmwm/cmsauth.git
Documentation: pkg.go.dev

# README

cmsauth

Go CI build GoDoc Go Report Card

Perform authentication and authorization actions used in CMS experiment on web frontend.

# Functions

CertExpire gets minimum certificate expire from list of certificates.
GetCricData downloads CRIC data.
GetCricDataByKey downloads CRIC data.
GetCricEntries downloads CRIC data.
GetSortedDN function translates given dn to sorted string.
HttpClient provides cert/token aware HTTP client.
ParseCric allows to parse CRIC file and use cric Login as a key for cric entry map.
ParseCricByKey allows to parse CRIC file use use provided key as a cric entry map.
ReadToken function to either read file content or return given string.
TlsCerts returns X509 certificates.

# Variables

TIMEOUT defines timeout for net/url request.
TLSCertsRenewInterval controls interval to re-read TLS certs (in seconds).
Token defines access token location.
Verbose defines verbosity level.

# Structs

CMSAuth is a generic type which holds auth.
CricEntry represents structure in CRIC entry (used by CMS headers).
TLSCertsManager holds TLS certificates for the server.

# Type aliases

CricRecords defines type for CRIC records.
StringList allows to sort string keys.