open-consul/agent/consul/authmethod/ssoauth/sso_oss.go

30 lines
563 B
Go
Raw Normal View History

// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
//go:build !consulent
// +build !consulent
2020-05-12 01:59:29 +00:00
package ssoauth
import (
"fmt"
"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
}
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) {}