import (
"fmt"
"github.com/lucasuyezu/cas"
)
func main() {
cas := cas.NewClient("https://server", "user", "pass")
ticket, _ := cas.RequestServiceTicket("service")
fmt.Println("ST is ", ticket)
}
import (
"fmt"
"github.com/lucasuyezu/cas"
)
func main() {
cas := cas.NewService("https://server", "service-host")
response, _ := cas.ValidateServiceTicket("service")
fmt.Println("ST is ", response.Status)
}
- Improve error handling
- Invalidate a Service Ticket
- Reuse a TGT (Ticket Granting Ticket) to generate more than one Service Ticket
- Invalidate a TGT (sign out from all services)