2017-07-27 15:56:32 +00:00
|
|
|
package logical
|
|
|
|
|
2017-10-04 17:35:05 +00:00
|
|
|
// Alias represents the information used by core to create implicit entity.
|
2017-07-27 15:56:32 +00:00
|
|
|
// Implicit entities get created when a client authenticates successfully from
|
|
|
|
// any of the authentication backends (except token backend).
|
2017-10-04 17:35:05 +00:00
|
|
|
type Alias struct {
|
2017-07-27 15:56:32 +00:00
|
|
|
// MountType is the backend mount's type to which this identity belongs
|
|
|
|
MountType string `json:"mount_type" structs:"mount_type" mapstructure:"mount_type"`
|
|
|
|
|
2017-10-11 17:21:20 +00:00
|
|
|
// MountAccessor is the identifier of the mount entry to which this
|
|
|
|
// identity belongs
|
2017-07-27 15:56:32 +00:00
|
|
|
MountAccessor string `json:"mount_accessor" structs:"mount_accessor" mapstructure:"mount_accessor"`
|
|
|
|
|
2017-10-11 17:21:20 +00:00
|
|
|
// Name is the identifier of this identity in its authentication source
|
2017-07-27 15:56:32 +00:00
|
|
|
Name string `json:"name" structs:"name" mapstructure:"name"`
|
|
|
|
}
|