<p></p>
<p>Hi,<br>
actually you can implement RFC 8898 in kamailio routing script, all the pieces are already there.<br>
For the challenge you can easily reply 401/407 adding a "forged" WWW-Authenticate header with Bearer schema and authz-server.<br>
For the token validation:</p>
<ul>
<li>if it's a structured token you can validate the JWT and extract the claims using the jwt module and jansson module</li>
<li>if it's a reference token you can call the /inspect endpoint using http_client or http_async_client modules and parsing the response with jansson module<br>
Basically all the RFC is here, being the claims and how they apply to the routing logic strictly domain/business logic dependent.<br>
A dedicated module would just wrap the token validation and challenge logics into some functions exposed to kemi/script.<br>
I've though about this for some time but at the end I didn't started for lack of time and because the implemenation I've done using routing script is fullfilling our needs and running in production since several years.<br>
But it would be probably nice to have :)<br>
About the client, I'm not aware on any client actively working on implementing it, in my case I'm using a modified Linphone client for android/iOS.</li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2669#issuecomment-797378574">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZIO6CNOAVP6S4THA33TDHQY7ANCNFSM4Y6PMKAQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZO7F6JZVUOC4MMNK3TTDHQY7A5CNFSM4Y6PMKA2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOF6DQQDQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2669#issuecomment-797378574",
"url": "https://github.com/kamailio/kamailio/issues/2669#issuecomment-797378574",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>