chore: go fmt
This commit is contained in:
parent
bdad6bf8ed
commit
d832ea7304
|
@ -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) {
|
||||||
|
|
|
@ -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{}
|
||||||
|
|
Loading…
Reference in New Issue