You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
what i miss is Basic Authentication.
Could be something like:
default: { baseUri: 'https://jsonplaceholder.typicode.com', user: xxxx, password, xxxx }
in the config.
Could you point me, where i should add this in the code?
Then i will give it a try to add and create a pull reuqest.
greetings,
Noud
The text was updated successfully, but these errors were encountered:
Sorry for the late response.
I think is best to have something like this:
default:
baseUri: 'https://jsonplaceholder.typicode.com'
baseHeaders:
Authorization: "some auth header"
CustomHeader: "value"
With this approach we could add any HTTP header.
For coding this you need to change Symfony configuration to allow the above model and pass this headers up to Cos\RestClientBundle\Request\RequestExecutor where guzzle is used to execute HTTP request.
hi Cosmin,
what i miss is Basic Authentication.
Could be something like:
default: { baseUri: 'https://jsonplaceholder.typicode.com', user: xxxx, password, xxxx }
in the config.
Could you point me, where i should add this in the code?
Then i will give it a try to add and create a pull reuqest.
greetings,
Noud
The text was updated successfully, but these errors were encountered: