github.com/miguelangel-nubla/oauth2commander@v0.3.7/config.json (about) 1 { 2 "clientID": "<client-id>", 3 "clientSecret": "<client-secret?", 4 "oidcIssuer": "https://<domain.tld>/oauth2/openid/<resource-server>", 5 "callbackURL": "https://<domain.tld>/callback", 6 "listenAddr": ":8080", 7 "tlsCert": "path/to/your/optional/cert.pem", 8 "tlsKey": "path/to/your/optional/key.pem", 9 "endpoints": [ 10 { 11 "path": "/public", 12 "public": true, 13 "command": ["echo", "Hello world!"] 14 }, 15 { 16 "path": "/private", 17 "command": ["echo", "{{.AuthClaims.PreferredUsername}}"] 18 }, 19 { 20 "path": "/custom-html", 21 "command": ["echo", "You can use custom HTML files for presenting the output of a command."], 22 "htmlFile": "custom.html" 23 }, 24 { 25 "path": "/get-file", 26 "binaryOutput": true, 27 "command": ["cat", "file.png"], 28 "requiredGroups": ["admins"] 29 } 30 ] 31 }