Skip to content

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

@ifelseend

Description

@ifelseend

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions