Re: [sipcore] I-D Action: draft-ietf-sipcore-sip-token-authnz-02.txt

"Olle E. Johansson" <oej@edvina.net> Wed, 10 July 2019 06:54 UTC

Return-Path: <oej@edvina.net>
X-Original-To: sipcore@ietfa.amsl.com
Delivered-To: sipcore@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 90EB6120105 for <sipcore@ietfa.amsl.com>; Tue, 9 Jul 2019 23:54:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.898
X-Spam-Level:
X-Spam-Status: No, score=-1.898 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id n6GyitmoKaW5 for <sipcore@ietfa.amsl.com>; Tue, 9 Jul 2019 23:54:14 -0700 (PDT)
Received: from smtp7.webway.se (smtp7.webway.se [212.3.14.205]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0FE15120103 for <sipcore@ietf.org>; Tue, 9 Jul 2019 23:54:13 -0700 (PDT)
Received: from [192.168.1.80] (static-212-247-19-62.cust.tele2.se [212.247.19.62]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp7.webway.se (Postfix) with ESMTPSA id 1F598A40; Wed, 10 Jul 2019 08:54:10 +0200 (CEST)
From: "Olle E. Johansson" <oej@edvina.net>
Message-Id: <FC8A6410-E6C4-456F-951E-5BC39A461430@edvina.net>
Content-Type: multipart/alternative; boundary="Apple-Mail=_7C1F8139-0795-451C-8850-C2495A74D477"
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\))
Date: Wed, 10 Jul 2019 08:54:08 +0200
In-Reply-To: <CAD5OKxtyGEkxbmTMLyTa6VObrQQTUGLFRHiGm1OaS2SaY+SurA@mail.gmail.com>
Cc: Olle E Johansson <oej@edvina.net>, Christer Holmberg <christer.holmberg@ericsson.com>, "sipcore@ietf.org" <sipcore@ietf.org>
To: Roman Shpount <roman@telurix.com>
References: <156249821133.14592.1211919336596009446@ietfa.amsl.com> <CAGL6epLsP_UfZMAcFLsORrR05Enu-vp=jnkgUFuKSttQm8swAw@mail.gmail.com> <c8d5c42e-ab21-80e8-3189-c8592dd02d3a@alum.mit.edu> <HE1PR07MB3161C55955B2FCED2C0F6A9993F60@HE1PR07MB3161.eurprd07.prod.outlook.com> <68ed93ae-57df-6bc7-774b-47959417abda@alum.mit.edu> <HE1PR07MB3161D46B4A44FC7E789ADDB893F10@HE1PR07MB3161.eurprd07.prod.outlook.com> <4a9787e5-b5e2-bc08-0fa0-fae6bd44148d@alum.mit.edu> <527F4C39-F065-4335-A939-6D443F1801E7@ericsson.com> <CAD5OKxuK_2+JcbGvo6LNeRbCYXWXQmhKQPNUzoZvZEOupPWyjw@mail.gmail.com> <HE1PR07MB3161612130F07C8F727A2BB693F10@HE1PR07MB3161.eurprd07.prod.outlook.com> <CAD5OKxtR-WBhfa4msbAfXoK7JowYaKK3fSCbw0cXm6SRGwkLxg@mail.gmail.com> <HE1PR07MB3161434F0C9714266EF22DF093F10@HE1PR07MB3161.eurprd07.prod.outlook.com> <CAD5OKxtyGEkxbmTMLyTa6VObrQQTUGLFRHiGm1OaS2SaY+SurA@mail.gmail.com>
X-Mailer: Apple Mail (2.3445.104.11)
Archived-At: <https://mailarchive.ietf.org/arch/msg/sipcore/7xPAR9ysKJeXFBp6hTizo9jT0a8>
Subject: Re: [sipcore] I-D Action: draft-ietf-sipcore-sip-token-authnz-02.txt
X-BeenThere: sipcore@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: SIP Core Working Group <sipcore.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/sipcore>, <mailto:sipcore-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/sipcore/>
List-Post: <mailto:sipcore@ietf.org>
List-Help: <mailto:sipcore-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/sipcore>, <mailto:sipcore-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 10 Jul 2019 06:54:18 -0000


> On 10 Jul 2019, at 00:57, Roman Shpount <roman@telurix.com> wrote:
> 
> On Tue, Jul 9, 2019 at 4:00 PM Christer Holmberg <christer.holmberg@ericsson.com <mailto:christer.holmberg@ericsson.com>> wrote:
> >>>> As far as I know, OAuth for SIP has only been used for REGISTER requests, between the UA and the registrar. 
> >>>> I have never heard about anyone using it for non-REGISTER authentication, and I wonder whether we even need 
> >>>> to cover it in the draft. We could limit the scope the REGISTER requests. Then, if anyone ever needs OAuth for non-REGISTER requests, a separate draft can be written.
> >>> 
> >>> Really? Normally, for a secure solution, every SIP request, including requests sent by UA in dialog established from the 
> >>> server to the registered end point must be authenticated. OAuth for REGISTRER requests only is kind of useless since it 
> >>> does not allow UA to send any messages to the server without some additional authentication mechanism.
> >>
> >> Not sure what you mean by "secure solution", but UAs can still use SIP Digest authentication.
> >>
> >> What I am saying is that only use-case for SIP OAuth I am aware of is for REGISTER.
> >
> > How do they get these SIP Digest credentials?
> >
> > I am looking at a very simple SIP-Over-Websockets client scenario:
> >
> > User logs into the web site which uses OAuth. UA, running in the browser gets a token which is used to Register UA with a SIP proxy.
> 
> Wouldn't  you use OAuth to establish the WebSocket connection?
>  
> No, WebSocket connection is to a different server and typically does not require authentication.
I don’t think that’s correct. See section 7 of RFC 7118 - SIP over WS. https://tools.ietf.org/html/rfc7118#section-7 <https://tools.ietf.org/html/rfc7118#section-7>

> In this specific case, I was thinking OpenSIPS with SIP-over-WS support. Implementing OAuth authentication of SIP message would be trivial there, but OAuth authentication for WebSocket would be much less obvious.
That’s implementation. I am pretty sure that Kamailio can auth the websocket, either by TLS client cert or HTTP digest auth. Guess I need to test :-)

> 
> >What credentials is UA using to place a call (send INVITE to the proxy)? 
> >If a call comes in from the proxy to UA, what credentials is UA using to hang up the call (send BYE message)?
> 
> If the registry and the call handling is part of the same service I guess you could use the same credentials, assuming 3261 generally allows using the same credentials for registrations and calls.
> 
> Are you saying using OAuth token authentication for calls (INVITE) and in dialog messages (BYE)?
Why not? It’s just a different Authorization header value. In my view Oauth bearer tokens should be usable in all places where you today have MD5 digest auth.

/O