As of right now, espressif only supports the two authentication modes "Basic" and "Digest" with no support for "Bearer":
https://docs.espressif.com/projects/esp ... entication
I would like to make use of the JWT token authentication using esp https client which would require that.
My question therefore is: Is there a plan in the near future to implement "bearer" type authentication on the esp https client? If not, can someone give a rought estimate on how extensive a custom implementation would be?
Support for "bearer" authentication type in https client [solved]
Support for "bearer" authentication type in https client [solved]
Last edited by RichPiano on Thu Sep 23, 2021 2:44 pm, edited 1 time in total.
Re: Support for "bearer" authentication type in https client
Hello,
Unless I'm missing something with the existing toolset in IDF you could handle this.
https://github.com/martinberlin/cale-id ... e.cpp#L411
Of course I don't know the internals of your particular OAuth but you could get a token and then pass it on every request as an authorization Bearer token.
I'm also quite sure there should be some example of this if you Google around.
Unless I'm missing something with the existing toolset in IDF you could handle this.
https://github.com/martinberlin/cale-id ... e.cpp#L411
Of course I don't know the internals of your particular OAuth but you could get a token and then pass it on every request as an authorization Bearer token.
I'm also quite sure there should be some example of this if you Google around.
epdiy collaborator | http://fasani.de Fan of Espressif MCUs and electronic design
Re: Support for "bearer" authentication type in https client
Thanks a lot! I just wanted to get back to you and say that it worked
Re: Support for "bearer" authentication type in https client
Awesome! You can edit the first entry and add [Solved] or similar so you help to identify the entries that are still not resolved.
epdiy collaborator | http://fasani.de Fan of Espressif MCUs and electronic design
Who is online
Users browsing this forum: No registered users and 110 guests