Rename persona to alias (#3420)
Merging this will break the build. I'll fix it post merge by updating the vendor libs.
This commit is contained in:
parent
62c1098ef9
commit
eb418f59a0
|
@ -52,9 +52,9 @@ type Auth struct {
|
|||
// Number of allowed uses of the issued token
|
||||
NumUses int `json:"num_uses" mapstructure:"num_uses" structs:"num_uses"`
|
||||
|
||||
// Persona is the information about the authenticated client returned by
|
||||
// Alias is the information about the authenticated client returned by
|
||||
// the auth backend
|
||||
Persona *Persona `json:"persona" structs:"persona" mapstructure:"persona"`
|
||||
Alias *Alias `json:"alias" structs:"alias" mapstructure:"alias"`
|
||||
}
|
||||
|
||||
func (a *Auth) GoString() string {
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
package logical
|
||||
|
||||
// Persona represents the information used by core to create implicit entity.
|
||||
// Alias represents the information used by core to create implicit entity.
|
||||
// Implicit entities get created when a client authenticates successfully from
|
||||
// any of the authentication backends (except token backend).
|
||||
//
|
||||
// This is applicable to enterprise binaries only. Persona should be set in the
|
||||
// This is applicable to enterprise binaries only. Alias should be set in the
|
||||
// Auth response returned by the credential backends. This structure is placed
|
||||
// in the open source repository only to enable custom authetication plugins to
|
||||
// be used along with enterprise binary. The custom auth plugins should make
|
||||
// use of this and fill out the Persona information in the authentication
|
||||
// use of this and fill out the Alias information in the authentication
|
||||
// response.
|
||||
type Persona struct {
|
||||
type Alias struct {
|
||||
// MountType is the backend mount's type to which this identity belongs
|
||||
// to.
|
||||
MountType string `json:"mount_type" structs:"mount_type" mapstructure:"mount_type"`
|
||||
|
|
|
@ -174,13 +174,13 @@ type Operation string
|
|||
|
||||
const (
|
||||
// The operations below are called per path
|
||||
CreateOperation Operation = "create"
|
||||
ReadOperation = "read"
|
||||
UpdateOperation = "update"
|
||||
DeleteOperation = "delete"
|
||||
ListOperation = "list"
|
||||
HelpOperation = "help"
|
||||
PersonaLookaheadOperation = "persona-lookahead"
|
||||
CreateOperation Operation = "create"
|
||||
ReadOperation = "read"
|
||||
UpdateOperation = "update"
|
||||
DeleteOperation = "delete"
|
||||
ListOperation = "list"
|
||||
HelpOperation = "help"
|
||||
AliasLookaheadOperation = "alias-lookahead"
|
||||
|
||||
// The operations below are called globally, the path is less relevant.
|
||||
RevokeOperation Operation = "revoke"
|
||||
|
|
Loading…
Reference in New Issue