func AuthorizeOneOf(allowed ...spiffeid.ID) Authorizer {
	return AdaptMatcher(spiffeid.MatchOneOf(allowed...))
}
AuthorizeOneOf allows any SPIFFE ID in the given list of IDs.
package tlsconfig
import (
	"crypto/x509"
	"github.com/spiffe/go-spiffe/v2/spiffeid"
)
type Authorizer func(id spiffeid.ID, verifiedChains [][]*x509.Certificate) error
func AuthorizeAny() Authorizer {
	return AdaptMatcher(spiffeid.MatchAny())
}
func AuthorizeID(allowed spiffeid.ID) Authorizer {
	return AdaptMatcher(spiffeid.MatchID(allowed))
}