chore: go fmt

This commit is contained in:
AJ ONeal 2023-04-04 17:00:04 -06:00
parent bdad6bf8ed
commit d832ea7304
Signed by: coolaj86
GPG Key ID: 585419CA6DB0AA23
2 changed files with 14 additions and 13 deletions

View File

@ -38,7 +38,6 @@ type VerificationParams struct {
// ctx := r.Context() // ctx := r.Context()
// jws, ok := ctx.Value(chiauth.JWSKey).(*libauth.JWS) // jws, ok := ctx.Value(chiauth.JWSKey).(*libauth.JWS)
// }) // })
//
func NewTokenVerifier(opts VerificationParams) func(http.Handler) http.Handler { func NewTokenVerifier(opts VerificationParams) func(http.Handler) http.Handler {
return func(next http.Handler) http.Handler { return func(next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {

View File

@ -28,6 +28,7 @@ type IssuerList = keyfetch.Whitelist
// create a trusted IssuerList of public and/or internal issuer URLs. // create a trusted IssuerList of public and/or internal issuer URLs.
// //
// Example: // Example:
//
// OIDC_ISSUERS='https://example.com/ https://therootcompany.github.io/libauth/' // OIDC_ISSUERS='https://example.com/ https://therootcompany.github.io/libauth/'
// OIDC_ISSUERS_INTERNAL='http://localhost:3000/ http://my-service-name:8080/' // OIDC_ISSUERS_INTERNAL='http://localhost:3000/ http://my-service-name:8080/'
func ParseIssuerEnvs(issuersEnvName, internalEnvName string) (IssuerList, error) { func ParseIssuerEnvs(issuersEnvName, internalEnvName string) (IssuerList, error) {
@ -49,6 +50,7 @@ func ParseIssuerEnvs(issuersEnvName, internalEnvName string) (IssuerList, error)
// ParseIssuerListString will Split comma- and/or space-delimited list into a slice // ParseIssuerListString will Split comma- and/or space-delimited list into a slice
// //
// Example: // Example:
//
// "https://example.com/, https://therootcompany.github.io/libauth/" // "https://example.com/, https://therootcompany.github.io/libauth/"
func ParseIssuerListString(issuerList string) []string { func ParseIssuerListString(issuerList string) []string {
issuers := []string{} issuers := []string{}