Skip to content

dmwm/auth-proxy-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

91ab8e3 · Jan 23, 2025
Sep 5, 2024
Aug 24, 2024
Dec 11, 2024
Oct 1, 2024
Aug 24, 2024
Aug 24, 2024
Dec 19, 2024
Sep 24, 2024
Aug 24, 2024
Nov 21, 2023
Jul 23, 2021
Oct 2, 2020
Jun 2, 2020
Sep 5, 2024
Aug 24, 2024
Feb 8, 2022
Jul 12, 2024
Nov 3, 2024
Sep 4, 2024
Sep 4, 2024
Dec 19, 2024
Dec 19, 2024
Aug 24, 2024
Jan 23, 2025
Jun 30, 2024
Oct 15, 2024
Nov 3, 2024
Aug 24, 2024
Nov 3, 2024
Nov 14, 2024
Jun 15, 2024
Oct 15, 2024
Oct 16, 2020

Repository files navigation

auth-proxy-server

Go CI build Go Report Card

Go implementation of reverse proxy server with OAuth OIDC or x509 authentication. It provides CMS authentication headers based on CRIC information, and build-in rotate logs functionality.

For full details please refer to this document.

Building and runnign the code

The code can be build as following:

# to build
make
# or use go build command
go build -ldflags="-X main.version=`git rev-parse --short HEAD`"

To run the service we can choose either between CERN SSO OAuth2 OICD authentication or x509 one. In both cases, please provide CRIC file and/or URL.

# to run with CERN SSO OAuth OICD authentication
auth-proxy-server -config config.json

# to run with x509 authentication
auth-proxy-server -config config.json -useX509

Code organization

The code is implemented as the following modules:

Both server implementations (oauthProxyServer and x509ProxyServer) support /server end-point which can be used to update server settings, e.g. curl -X POST -H"Content-type: application/json" -d '{"verbose":true}' https://a.b.com/server

This codebase is based on different examples taken from: