Skip to content

Accept X-Authorization header #7

@johnrogers

Description

@johnrogers

Hello there,

Is it possible for tesla-http-api to accept the X-Authorization header?

EVCC sends this header as authentication when configuring a command proxy: https://github.com/evcc-io/evcc/blob/fe6dfdf838666fe55c9b447b4d395dc7a7bb373d/vehicle/tesla.go#L100

And upon doing so, tesla-http-api returns a 403:

➜  ~ curl -H "X-Authorization: Bearer ****" \
     -H "Content-Type: application/json" \
     --data "{}" \
     -X POST \
     -i https://my-domain.com/tesla-http-api/api/1/vehicles/****/command/flash_lights
HTTP/2 403 

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions