[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openser-users
Subject:    [SR-Users] Re: http_client using JWT?
From:       Daniel-Constantin Mierla <miconda () gmail ! com>
Date:       2023-05-31 7:16:52
Message-ID: b2ebcc8a-c195-221e-beca-497ea1751796 () gmail ! com
[Download RAW message or body]

Hello,

On 26.05.23 11:57, BenoƮt Panizzon wrote:
> Hi
>
> The http_client module support the somehow old fashioned way to submit
> credentials as part of the URL.
>
> Our 'held' server developer would love to use either JWT or a Bearer
> Token in the Auth-Header or a 'cookie-jar' to authenticate the
> requests.
>
> Is this somehow possible?

http_client_query() has a parameter to set additional headers, which
accepts variables. Therefore you can set there your own Auth-Header.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference - June 5-7, 2023 - www.kamailioworld.com

__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
To unsubscribe send an email to sr-users-leave@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic