Skip to content

How to use jwt Authorization Bearer with rest-client-sdk-bundle ? #8

Description

@hvalcourtSerdy

Hi,

I need to pass some auth information from the Request header to the rest-client-sdk-bundle.

Ex for jwt :
Authorization Bearer eyJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE0ODc0NjY2MzksIm ...etc...

For now I dont see how to pass the header information I need in the Mapado\RestClientSdk\EntityRepository.

Maybe you have an Idea how I should proceed to pass thoses informations ?

Exemple :
In Mapado\RestClientSdk\EntityRepository code : $data = $this->restClient->get($id); // second parameter not set here

$data = $this->restClient->get($id) call function private function executeRequest($method, $url, $parameters = [])

$this->httpClient->request($method, $url, $parameters);

Thanks for the help

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions