Closed lvermeire closed 7 months ago
https://github.com/Kong/go-pdk/blob/4deec45a5bfe421a0ceebcbf7931d395250949b0/client/client.go#L125-L152
The function kong.client.authenticate in the Kong PDK client module supports nil values for both consumer and credential:
While both consumer and credential can be nil, at least one of them must exist. Otherwise, this function will throw an error.
consumer
credential
nil
The current implementation of the go client does not allow either parameter to be nil, but it should.
Thanks for the report and the PR! We will be looking into it soon.
https://github.com/Kong/go-pdk/blob/4deec45a5bfe421a0ceebcbf7931d395250949b0/client/client.go#L125-L152
The function kong.client.authenticate in the Kong PDK client module supports nil values for both consumer and credential:
The current implementation of the go client does not allow either parameter to be nil, but it should.