mirror of
https://github.com/documize/community.git
synced 2025-08-09 07:25:23 +02:00
auth with cas
This commit is contained in:
parent
8c99977fc9
commit
8c2df6178d
150 changed files with 43682 additions and 24175 deletions
27
vendor/gopkg.in/cas.v2/ticket_store.go
generated
vendored
Normal file
27
vendor/gopkg.in/cas.v2/ticket_store.go
generated
vendored
Normal file
|
@ -0,0 +1,27 @@
|
|||
package cas
|
||||
|
||||
import (
|
||||
"errors"
|
||||
)
|
||||
|
||||
// TicketStore errors
|
||||
var (
|
||||
// Given Ticket is not associated with an AuthenticationResponse
|
||||
ErrInvalidTicket = errors.New("cas: ticket store: invalid ticket")
|
||||
)
|
||||
|
||||
// TicketStore provides an interface for storing and retrieving service
|
||||
// ticket data.
|
||||
type TicketStore interface {
|
||||
// Read returns the AuthenticationResponse data associated with a ticket identifier.
|
||||
Read(id string) (*AuthenticationResponse, error)
|
||||
|
||||
// Write stores the AuthenticationResponse data received from a ticket validation.
|
||||
Write(id string, ticket *AuthenticationResponse) error
|
||||
|
||||
// Delete removes the AuthenticationResponse data associated with a ticket identifier.
|
||||
Delete(id string) error
|
||||
|
||||
// Clear removes all of the AuthenticationResponse data from the store.
|
||||
Clear() error
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue