model

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 31, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArtifactResponse

type ArtifactResponse struct {
	User                 *User         `protobuf:"bytes,1,opt,name=User,proto3" json:"User,omitempty"`
	Request              *AuthnRequest `protobuf:"bytes,2,opt,name=Request,proto3" json:"Request,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

Allows storage of data required for artifact response until service provider retrieves it

func (*ArtifactResponse) Descriptor

func (*ArtifactResponse) Descriptor() ([]byte, []int)

func (*ArtifactResponse) GetRequest

func (m *ArtifactResponse) GetRequest() *AuthnRequest

func (*ArtifactResponse) GetUser

func (m *ArtifactResponse) GetUser() *User

func (*ArtifactResponse) ProtoMessage

func (*ArtifactResponse) ProtoMessage()

func (*ArtifactResponse) Reset

func (m *ArtifactResponse) Reset()

func (*ArtifactResponse) String

func (m *ArtifactResponse) String() string

func (*ArtifactResponse) XXX_DiscardUnknown added in v0.8.0

func (m *ArtifactResponse) XXX_DiscardUnknown()

func (*ArtifactResponse) XXX_Marshal added in v0.8.0

func (m *ArtifactResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ArtifactResponse) XXX_Merge added in v0.8.0

func (m *ArtifactResponse) XXX_Merge(src proto.Message)

func (*ArtifactResponse) XXX_Size added in v0.8.0

func (m *ArtifactResponse) XXX_Size() int

func (*ArtifactResponse) XXX_Unmarshal added in v0.8.0

func (m *ArtifactResponse) XXX_Unmarshal(b []byte) error

type Attribute

type Attribute struct {
	Name                 string   `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
	Value                []string `protobuf:"bytes,2,rep,name=Value,proto3" json:"Value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

User attributes

func (*Attribute) Descriptor

func (*Attribute) Descriptor() ([]byte, []int)

func (*Attribute) GetName

func (m *Attribute) GetName() string

func (*Attribute) GetValue

func (m *Attribute) GetValue() []string

func (*Attribute) ProtoMessage

func (*Attribute) ProtoMessage()

func (*Attribute) Reset

func (m *Attribute) Reset()

func (*Attribute) String

func (m *Attribute) String() string

func (*Attribute) XXX_DiscardUnknown added in v0.8.0

func (m *Attribute) XXX_DiscardUnknown()

func (*Attribute) XXX_Marshal added in v0.8.0

func (m *Attribute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Attribute) XXX_Merge added in v0.8.0

func (m *Attribute) XXX_Merge(src proto.Message)

func (*Attribute) XXX_Size added in v0.8.0

func (m *Attribute) XXX_Size() int

func (*Attribute) XXX_Unmarshal added in v0.8.0

func (m *Attribute) XXX_Unmarshal(b []byte) error

type AuthnRequest

type AuthnRequest struct {
	ID                            string               `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Version                       string               `protobuf:"bytes,2,opt,name=Version,proto3" json:"Version,omitempty"`
	IssueInstant                  *timestamp.Timestamp `protobuf:"bytes,3,opt,name=IssueInstant,proto3" json:"IssueInstant,omitempty"`
	Issuer                        string               `protobuf:"bytes,4,opt,name=Issuer,proto3" json:"Issuer,omitempty"`
	Destination                   string               `protobuf:"bytes,5,opt,name=Destination,proto3" json:"Destination,omitempty"`
	AssertionConsumerServiceURL   string               `protobuf:"bytes,6,opt,name=AssertionConsumerServiceURL,proto3" json:"AssertionConsumerServiceURL,omitempty"`
	ProtocolBinding               string               `protobuf:"bytes,7,opt,name=ProtocolBinding,proto3" json:"ProtocolBinding,omitempty"`
	AssertionConsumerServiceIndex uint32               `protobuf:"varint,8,opt,name=AssertionConsumerServiceIndex,proto3" json:"AssertionConsumerServiceIndex,omitempty"`
	RelayState                    string               `protobuf:"bytes,9,opt,name=RelayState,proto3" json:"RelayState,omitempty"`
	XXX_NoUnkeyedLiteral          struct{}             `json:"-"`
	XXX_unrecognized              []byte               `json:"-"`
	XXX_sizecache                 int32                `json:"-"`
}

Allows storage of the request for cases where there is a user wait state such as entering a password

func NewAuthnRequest

func NewAuthnRequest(src *saml.AuthnRequest, relayState string) (*AuthnRequest, error)

NewAuthnRequest creates a protobuf object from XML-derived struct

func (*AuthnRequest) Descriptor

func (*AuthnRequest) Descriptor() ([]byte, []int)

func (*AuthnRequest) GetAssertionConsumerServiceIndex

func (m *AuthnRequest) GetAssertionConsumerServiceIndex() uint32

func (*AuthnRequest) GetAssertionConsumerServiceURL

func (m *AuthnRequest) GetAssertionConsumerServiceURL() string

func (*AuthnRequest) GetDestination

func (m *AuthnRequest) GetDestination() string

func (*AuthnRequest) GetID

func (m *AuthnRequest) GetID() string

func (*AuthnRequest) GetIssueInstant

func (m *AuthnRequest) GetIssueInstant() *timestamp.Timestamp

func (*AuthnRequest) GetIssuer

func (m *AuthnRequest) GetIssuer() string

func (*AuthnRequest) GetProtocolBinding

func (m *AuthnRequest) GetProtocolBinding() string

func (*AuthnRequest) GetRelayState

func (m *AuthnRequest) GetRelayState() string

func (*AuthnRequest) GetVersion

func (m *AuthnRequest) GetVersion() string

func (*AuthnRequest) ProtoMessage

func (*AuthnRequest) ProtoMessage()

func (*AuthnRequest) Reset

func (m *AuthnRequest) Reset()

func (*AuthnRequest) String

func (m *AuthnRequest) String() string

func (*AuthnRequest) XXX_DiscardUnknown added in v0.8.0

func (m *AuthnRequest) XXX_DiscardUnknown()

func (*AuthnRequest) XXX_Marshal added in v0.8.0

func (m *AuthnRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthnRequest) XXX_Merge added in v0.8.0

func (m *AuthnRequest) XXX_Merge(src proto.Message)

func (*AuthnRequest) XXX_Size added in v0.8.0

func (m *AuthnRequest) XXX_Size() int

func (*AuthnRequest) XXX_Unmarshal added in v0.8.0

func (m *AuthnRequest) XXX_Unmarshal(b []byte) error

type User

type User struct {
	Name                 string       `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
	Format               string       `protobuf:"bytes,2,opt,name=Format,proto3" json:"Format,omitempty"`
	Context              string       `protobuf:"bytes,3,opt,name=Context,proto3" json:"Context,omitempty"`
	IP                   string       `protobuf:"bytes,4,opt,name=IP,proto3" json:"IP,omitempty"`
	Attributes           []*Attribute `protobuf:"bytes,5,rep,name=Attributes,proto3" json:"Attributes,omitempty"`
	X509Certificate      []byte       `protobuf:"bytes,6,opt,name=X509Certificate,proto3" json:"X509Certificate,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

Allows storage of user information to avoid repeated logins, basis of SSO

func (*User) AppendAttributes

func (u *User) AppendAttributes(atts []*Attribute)

func (*User) AttributeStatement

func (u *User) AttributeStatement() *saml.AttributeStatement

func (*User) Descriptor

func (*User) Descriptor() ([]byte, []int)

func (*User) GetAttributes

func (m *User) GetAttributes() []*Attribute

func (*User) GetContext

func (m *User) GetContext() string

func (*User) GetFormat

func (m *User) GetFormat() string

func (*User) GetIP

func (m *User) GetIP() string

func (*User) GetName

func (m *User) GetName() string

func (*User) GetX509Certificate added in v0.8.0

func (m *User) GetX509Certificate() []byte

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) Reset

func (m *User) Reset()

func (*User) String

func (m *User) String() string

func (*User) XXX_DiscardUnknown added in v0.8.0

func (m *User) XXX_DiscardUnknown()

func (*User) XXX_Marshal added in v0.8.0

func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*User) XXX_Merge added in v0.8.0

func (m *User) XXX_Merge(src proto.Message)

func (*User) XXX_Size added in v0.8.0

func (m *User) XXX_Size() int

func (*User) XXX_Unmarshal added in v0.8.0

func (m *User) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL