ticket

package
v0.0.0-...-07b82e6 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2017 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoginTicket

type LoginTicket struct {
	Ticket   string    `bson:"_id"`
	Service  string    `bson:"service"`
	Validity time.Time `bson:"validity"`
}

func NewEmptyLoginTicket

func NewEmptyLoginTicket() LoginTicket

func NewLoginTicket

func NewLoginTicket(svc string) LoginTicket

func (LoginTicket) Serve

func (lt LoginTicket) Serve(w http.ResponseWriter, tmpl string, data util.LoginRequestorData)

type ProxyGrantingTicket

type ProxyGrantingTicket struct {
	Ticket   string    `bson:"_id"`
	Service  string    `bson:"service"`
	Username string    `bson:"username"`
	ClientIP string    `bson:"client_ip"`
	Validity time.Time `bson:"validity"`
}

func NewProxyGrantingTicket

func NewProxyGrantingTicket(svc string, pgtiou string, u string, ip string) ProxyGrantingTicket

type ProxyGrantingTicketIOU

type ProxyGrantingTicketIOU struct {
	Ticket string `bson:"_id"`
}

func NewProxyGrantingTicketIOU

func NewProxyGrantingTicketIOU() ProxyGrantingTicketIOU

type ProxyTicket

type ProxyTicket struct {
	Ticket   string    `bson:"_id"`
	Pgt      string    `bson:"pgt"`
	Validity time.Time `bson:"validity"`
}

func NewProxyTicket

func NewProxyTicket(pgt string) ProxyTicket

func (ProxyTicket) GetProxyGrantingTicket

func (pt ProxyTicket) GetProxyGrantingTicket() ProxyGrantingTicket

type ServiceTicket

type ServiceTicket struct {
	Ticket   string    `bson:"_id"`
	Service  string    `bson:"service"`
	Tgt      string    `bson:"tgt"`
	Validity time.Time `bson:"validity"`
	FromSso  bool      `bson:"from_sso"`
}

func NewServiceTicket

func NewServiceTicket(tgt string, svc string, sso bool) ServiceTicket

func (ServiceTicket) GetTicketGrantingTicket

func (st ServiceTicket) GetTicketGrantingTicket() TicketGrantingTicket

func (ServiceTicket) Serve

func (st ServiceTicket) Serve(w http.ResponseWriter, r *http.Request)

func (ServiceTicket) Validate

func (st ServiceTicket) Validate() bool

type TicketGrantingTicket

type TicketGrantingTicket struct {
	Ticket   string    `bson:"_id"`
	Username string    `bson:"username"`
	ClientIP string    `bson:"client_ip"`
	Validity time.Time `bson:"validity"`
}

func NewTicketGrantingTicket

func NewTicketGrantingTicket(u string, ip string) TicketGrantingTicket

Jump to

Keyboard shortcuts

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