modulepackage
2.2.2+incompatible
Repository: https://github.com/cloudogu/go-cas.git
Documentation: pkg.go.dev
# README
CAS Client library
CAS provides a http package compatible client implementation for use with securing http frontends in golang.
import "gopkg.in/cas.v2"
Examples and Documentation
Documentation is available at: http://godoc.org/gopkg.in/cas.v2
Examples are included in the documentation but are also available in the
_examples
directory.
# Functions
Attributes returns the authenticated users attributes.
AuthenticationDate returns the date and time that authentication was performed.
IsAuthenticated indicates whether the request has been authenticated with CAS.
IsFirstAuthenticatedRequest returns true, for the first successful authenticated request of a session.
IsNewLogin indicates whether the CAS service ticket was granted following a new authentication.
IsRememberedLogin indicates whether the CAS service ticket was granted by the presence of a long term authentication token.
MemberOf returns the list of groups which the user belongs to.
NewClient creates a Client with the provided Options.
NewDefaultURLScheme creates a URLScheme which uses the cas default urls.
NewRestClient creates a new client for the cas rest protocol with the provided options.
No description provided by the author
ParseServiceResponse returns a successful response or an error.
RedirectToLogin allows CAS protected handlers to redirect a request to the CAS login page.
RedirectToLogout allows CAS protected handlers to redirect a request to the CAS logout page.
Username returns the authenticated users username.
# Constants
AuthenticationError Code values.
AuthenticationError Code values.
AuthenticationError Code values.
AuthenticationError Code values.
AuthenticationError Code values.
AuthenticationError Code values.
AuthenticationError Code values.
AuthenticationError Code values.
# Variables
Given Ticket is not associated with an AuthenticationResponse.
# Structs
AuthenticationError represents a CAS AuthenticationFailure response.
AuthenticationResponse captures authenticated user information.
Client implements the main protocol.
DefaultURLScheme is a configurable URLScheme.
MemoryStore implements the TicketStore interface storing ticket data in memory.
Client configuration options.
RestClient uses the rest protocol provided by cas.
RestOptions provide options for the RestClient.
ServiceTicketValidator is responsible for the validation of a service ticket.
# Interfaces
RestAuthenticator handles the cas authentication via the rest protocol.
TicketStore provides an interface for storing and retrieving service ticket data.
URLScheme creates the url which are required to handle the cas protocol.
# Type aliases
ServiceTicket stands for the access granted by the CAS server to an application for a specific user, also known as ST.
TicketGrantingTicket represents a SSO session for a user, also known as TGT.
UserAttributes represents additional data about the user.