Kong help ( Server has login)

Hi all

Hope someone can help me with this matter :slight_smile:

I use Kong gateway where there is a route and service configured to reach the server.
But the server has a login and password. It like kong can`t figure it out when there is a login on the Server.
If i curl a command trough kong to reach the Server with the login credentials nothing happens.
Any one have an idea to solve this?

curl --user test:test --data-binary ‘{“jsonrpc”: “1.0”, “id”: “curltest”, “method”: “getinfo”, “params”: }’ -H ‘content-type: text/plain;’ https://URL:8443/test/test-http?apikey=mykey

Hi Simon,
Please try to add the below header in the curl command. The value after Basic is encoded username:password

–header ‘Authorization: Basic dGVzdDp0ZXN0’

Thx for the Answer

Can you write/show me how you wound write it ?

best regards Simon