go-cas / cas

Golang CAS Client package
MIT License
224 stars 96 forks source link

Bug validate can‘t use client URLSchema #35

Closed RyouZhang closed 1 year ago

RyouZhang commented 4 years ago

custom client URLSchema

But in ServiceTicketValidator,ServiceValidateUrl then path is hard-code???

func (validator ServiceTicketValidator) ServiceValidateUrl(serviceUrl url.URL, ticket string) (string, error) { u, err := validator.casUrl.Parse(path.Join(validator.casUrl.Path, "serviceValidate"))

geoffgarside commented 4 years ago

Hi, the CAS URIs are a codified part of the specification

https://apereo.github.io/cas/5.1.x/protocol/CAS-Protocol-Specification.html#2-cas-uris