Move prefixes for many packages into the globals package (#3069)
This is a prerequisite for some enhancements to grant validation
This commit is contained in:
1 parent
6adc0c86b5
commit
b76b24a4ad
115 files changed
+796
-729
No files matched your search
@@ -12,6 +12,7 @@ import (
|
||||
"runtime"
|
||||
"strings"
|
||||
|
||||
"github.com/hashicorp/boundary/globals"
|
||||
"github.com/hashicorp/boundary/internal/auth/oidc"
|
||||
"github.com/hashicorp/boundary/internal/cmd/base/internal/docker"
|
||||
"github.com/hashicorp/boundary/internal/db"
|
||||
@@ -194,7 +195,7 @@ func (b *Server) CreateDevOidcAuthMethod(ctx context.Context) error {
|
||||
var err error
|
||||
|
||||
if b.DevOidcAuthMethodId == "" {
|
||||
b.DevOidcAuthMethodId, err = db.NewPublicId(oidc.AuthMethodPrefix)
|
||||
b.DevOidcAuthMethodId, err = db.NewPublicId(globals.OidcAuthMethodPrefix)
|
||||
if err != nil {
|
||||
return fmt.Errorf("error generating initial oidc auth method id: %w", err)
|
||||
}
|
||||
@@ -371,7 +372,7 @@ func (b *Server) createInitialOidcAuthMethod(ctx context.Context) (*oidc.AuthMet
|
||||
return nil, fmt.Errorf("error creating new in memory oidc auth method: %w", err)
|
||||
}
|
||||
if b.DevOidcAuthMethodId == "" {
|
||||
b.DevOidcAuthMethodId, err = db.NewPublicId(oidc.AuthMethodPrefix)
|
||||
b.DevOidcAuthMethodId, err = db.NewPublicId(globals.OidcAuthMethodPrefix)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("error generating initial oidc auth method id: %w", err)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user