2021-11-16 18:04:01 +00:00
|
|
|
//go:build !consulent
|
|
|
|
// +build !consulent
|
2020-05-12 01:59:29 +00:00
|
|
|
|
|
|
|
package ssoauth
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
|
2022-04-05 21:10:06 +00:00
|
|
|
"github.com/hashicorp/consul/acl"
|
2020-05-12 01:59:29 +00:00
|
|
|
"github.com/hashicorp/consul/internal/go-sso/oidcauth"
|
|
|
|
)
|
|
|
|
|
|
|
|
func validateType(typ string) error {
|
|
|
|
if typ != "jwt" {
|
|
|
|
return fmt.Errorf("type should be %q", "jwt")
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2022-04-05 21:10:06 +00:00
|
|
|
func (v *Validator) ssoEntMetaFromClaims(_ *oidcauth.Claims) *acl.EnterpriseMeta {
|
2020-05-12 01:59:29 +00:00
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type enterpriseConfig struct{}
|
|
|
|
|
|
|
|
func (c *Config) enterpriseConvertForLibrary(_ *oidcauth.Config) {}
|