Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set cas service client and ServiceTicketValidator client with different URL #40

Open
ifelseend opened this issue Apr 16, 2021 · 2 comments

Comments

@ifelseend
Copy link

hi, guys

I use go-case and it works great!

I have a small request. In our prod, the cas client must access cas client with an internal API to complete ServiceTicketValidator func. I found that the CAS httpClient is same with stValidator httpClient:

return &Client{
   	tickets:     tickets,
   	client:      client,
   	urlScheme:   urlScheme,
   	cookie:      cookie,
   	sessions:    sessions,
   	sendService: options.SendService,
   	stValidator: NewServiceTicketValidator(client, options.URL),
   }

I want add a func:

// SetStValidator set ServiceTicketValidator for the client
func (c *Client) SetStValidator(stValidator *ServiceTicketValidator) {
   c.stValidator = stValidator
}

so that I can set a ServiceTicketValidator with a different httpclient.

Thanks

@bbiao
Copy link
Contributor

bbiao commented May 5, 2021

@ifelseend Hi, I am not quit understand what you say "the cas client must access cas client with an internal API to complete ServiceTicketValidator func".

Do you mean you need to custom the http-client used in stValidator? Or can you explain your use case with more details.

@simonwanghub
Copy link

I have the same needs, please follow up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants