XEP-0399: Client Key Support

Similar documents
XEP-0099: IQ Query Action Protocol

XEP-0087: Stream Initiation

XEP-0363: HTTP File Upload

XEP-0044: Full Namespace Support for XML Streams

XEP-0361: Zero Handshake Server to Server Protocol

XEP-0344: Impact of TLS and DNSSEC on Dialback

XEP-0146: Remote Controlling Clients

XEP-0333: Chat Markers

XEP-0140: Shared Groups

XEP-0290: Encapsulated Digital Signatures in XMPP

XEP-0104: HTTP Scheme for URL Data

XEP-0283: Moved. Tory Patnoe Version 0.1.1

XEP-0395: Atomically Compare-And-Publish PubSub Items

XEP-0052: File Transfer

XEP-0056: Business Data Interchange

XEP-0206: XMPP Over BOSH

XEP-0114: Jabber Component Protocol

XEP-0129: WebDAV File Transfers

XEP-0293: Jingle RTP Feedback Negotiation

XEP-0009: Jabber-RPC

XEP-0133: Service Administration

XEP-0357: Push Notifications

XEP-0412: XMPP Compliance Suites 2019

XEP-0135: File Sharing

XEP-0341: Rayo CPA. Ben Langfeld Version 0.2

XEP-0042: Jabber OOB Broadcast Service (JOBS)

XEP-0033: Extended Stanza Addressing

XEP-0295: JSON Encodings for XMPP

XEP-0266: Codecs for Jingle Audio

XEP-0289: Federated MUC for Constrained Environments

XEP-0059: Result Set Management

XEP-0337: Event Logging over XMPP

XEP-0171: Language Translation

XEP-0043: Jabber Database Access

XEP-0280: Message Carbons

XEP-0298: Delivering Conference Information to Jingle Participants (Coin)

XEP-0011: Jabber Browsing

XEP-0130: Waiting Lists

Ecma International Policy on Submission, Inclusion and Licensing of Software

XEP-0340: COnferences with LIghtweight BRIdging (COLIBRI)

Ecma International Policy on Submission, Inclusion and Licensing of Software

Additional License Authorizations for HPE OneView for Microsoft Azure Log Analytics

XEP-0060: Publish-Subscribe

XEP-0278: Jingle Relay Nodes

XEP-0324: Internet of Things - Provisioning

Bar Code Discovery. Administrator's Guide

CA File Master Plus. Release Notes. Version

XEP-0050: Ad-Hoc Commands

RSA Two Factor Authentication

ServerStatus Installation and Operation Manual

LoadMaster VMware Horizon (with View) 6. Deployment Guide

XEP-0136: Message Archiving

Open Source Used In Cisco Configuration Professional for Catalyst 1.0

Epic. Epic Systems. Deployment Guide

Packet Trace Guide. Packet Trace Guide. Technical Note

MQ Port Scan Installation and Operation Manual

Splunk. Splunk. Deployment Guide

Migration Tool. Migration Tool (Beta) Technical Note

Moodle. Moodle. Deployment Guide

Adobe Connect. Adobe Connect. Deployment Guide

Panasonic Audio Player 2 User Guide

NTLM NTLM. Feature Description

Technics Audio Player User Guide

User Guide. Calibrated Software, Inc.

XEP-0284: Shared XML Editing

IETF TRUST. Legal Provisions Relating to IETF Documents. February 12, Effective Date: February 15, 2009

VMware vcenter Log Insight Manager. Deployment Guide

X Generic Event Extension. Peter Hutterer

IETF TRUST. Legal Provisions Relating to IETF Documents. Approved November 6, Effective Date: November 10, 2008

Bar Code Discovery. Administrator's Guide

Distributed Intelligent Capture. Integration Guide

Altus Shared Data Experience (SDX)

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

AMS Device Manager. Planning and Installation Guide May Version 13.5 Planning and Installation Guide

KEMP Driver for Red Hat OpenStack. KEMP LBaaS Red Hat OpenStack Driver. Installation Guide

MERIDIANSOUNDINGBOARD.COM TERMS AND CONDITIONS

iwrite technical manual iwrite authors and contributors Revision: 0.00 (Draft/WIP)

Simba Cassandra ODBC Driver with SQL Connector

Hyper-V - Windows 2012 and 8. Virtual LoadMaster for Microsoft Hyper-V on Windows Server 2012, 2012 R2 and Windows 8. Installation Guide

Feed Cache for Umbraco Version 2.0

Installing Your Microsoft Access Database (Manual Installation Instructions)

The Travel Tree Terms and Conditions

Upgrading BankLink Books

XEP-0148: Instant Messaging Intelligence Quotient (IM IQ)

git-pr Release dev2+ng5b0396a

HTNG Web Services Product Specification. Version 2011A

Online Manual. Print Plug-In for Office Guide. English

LoadMaster Clustering

TECHNICAL REPORT TR-027. SNMP-based ADSL LINE MIB. Issue: 1.0 Issue Date: September The Broadband Forum. All rights reserved.

LoadMaster VMware Horizon Access Point Gateway

Entrust WAP Server Certificate Relying Party Agreement

Edge Security Pack (ESP)

Cloudera QuickStart VM

Release Notes. BlackBerry Enterprise Identity

XEP-0065: SOCKS5 Bytestreams

HTNG Web Services Product Specification. Version 2014A

Print from SharePoint. Administrator's Guide

TWO-FACTOR AUTHENTICATION Version 1.1.0

TERMS OF USE Effective Date: January 1, 2015 To review material modifications and their effective dates scroll to the bottom of the page. 1.Parties.

4. Save as expressly set out herein no license is granted in respect of any intellectual property rights vested in F1000 or other third parties.

Transcription:

XEP-0399: Client Key Support Dave Cridland mailto:dave.c@threadsstyling.com xmpp:dwd@dave.cridland.net 2018-01-25 Version 0.1.0 Status Type Short Name Experimental Standards Track client-key This specification defines an XMPP binding of the supporting functions for the CLIENT-KEY SASL mechanism.

Legal Copyright This XMPP Extension Protocol is copyright 1999 2018 by the XMPP Standards Foundation (XSF). Permissions Permission is hereby granted, free of charge, to any person obtaining a copy of this specification (the Specification ), to make use of the Specification without restriction, including without limitation the rights to implement the Specification in a software program, deploy the Specification in a network service, and copy, modify, merge, publish, translate, distribute, sublicense, or sell copies of the Specification, and to permit persons to whom the Specification is furnished to do so, subject to the condition that the foregoing copyright notice and this permission notice shall be included in all copies or substantial portions of the Specification. Unless separate permission is granted, modified works that are redistributed shall not contain misleading information regarding the authors, title, number, or publisher of the Specification, and shall not claim endorsement of the modified works by the authors, any organization or project to which the authors belong, or the XMPP Standards Foundation. Warranty ## NOTE WELL: This Specification is provided on an AS IS BASIS, WITHOUT WARRANTIES OR CONDI- TIONS OF ANY KIND, express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. ## Liability In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall the XMPP Standards Foundation or any author of this Specification be liable for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising from, out of, or in connection with the Specification or the implementation, deployment, or other use of the Specification (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if the XMPP Standards Foundation or such author has been advised of the possibility of such damages. Conformance This XMPP Extension Protocol has been contributed in full conformance with the XSF s Intellectual Property Rights Policy (a copy of which can be found at <https://xmpp.org/about/xsf/ipr-policy> or obtained by writing to XMPP Standards Foundation, P.O. Box 787, Parker, CO 80134 USA).

Contents 1 Introduction 1 2 Typical Flow 1 3 Client Key Support Operations 1 3.1 Client Registration.................................. 1 3.2 Key Revocation.................................... 2 3.3 Key Enumeration................................... 2 4 Determining Support 3 5 Security Considerations 3

3 CLIENT KEY SUPPORT OPERATIONS 1 Introduction The CLIENT-KEY SASL mechanism defined in draft-cridland-kitten-clientkey-00.txt suggests supporting protocol messages to be present in the application protocol. This specification defines these for XMPP. 2 Typical Flow A typical client might use this protocol alongside that of TOTP, Extensible SASL Profile (XEP-0388) 1, and draft-cridland-kitten-clientkey-00.txt as follows. On first use, a client will use a traditional SASL mechanism using SASL2, such as SCRAM. The server will then prompt using <next-authenticate/> to initiate, or perform, TOTP. The client will then request a Client Key to reauthenticate later. This may be one or both of a short-term Client Key intended for in-memory storage, perhaps for use with ISR, and a longer-term Client Key used for a remember this client to suppress 2FA for a period. Later authentications will use CLIENT-KEY or CLIENT-KEY-PLUS, and the server SHOULD suppress TOTP in such cases. 3 Client Key Support Operations 3.1 Client Registration Client registration requests a Client Key from the server. It is typically used to speed reauthentication during a session, and to elide a full reauthentication at the start of a subsequent session. In order to register and obtain a Client Key, a client sends an <iq/> of type set containing an XML representation of the data required, within a <register/> element qualified by the urn:xmpp:client-key:0 namespace, containing four elements in any order. Descriptions of values are here informative; the canonical definition is in draft-cridland-kitten-clientkey- 00.txt. <id/> has a text value of the ClientID, a suitable identifier for the client instance, unique within the scope of the authenticated (<localpart@domain.tld> or <domain.tld>). <name/> has a text value of the Client Name, a human-readable name for the client instance. <key/> has a text value of the ValidationKey, encoded using Base 64. Implementors are strongly advised to take careful note of the requirements of the ValidationKey as discussed in draft-cridland-kitten-clientkey-00.txt. <ttl/> has a text value containing a integer string representation of the number of seconds the Client Key is requested to last for. In the following example, the ValidationKey is H( Random ), and the TTL is for 30 days - a 1 XEP-0388: Extensible SASL Profile <https://xmpp.org/extensions/xep-0388.html>. 1

3 CLIENT KEY SUPPORT OPERATIONS reasonable Remember this client option. <iq type = set id= 123456 > <register xmlns = urn:xmpp:client - key:0 > <id >213456-987123 -123987 < name > SuperChatBiscuit on Honest Pete s Mobile OS </ name > <key > WNiIwIqlYfNw44zul2EhUyqIPXE = </ key > <ttl >2592000 </ ttl > </ register > The server responds with two items of information in a <registered/> element qualified by the urn:xmpp:client-key:0 namespace. The EncryptedSecret is contained within a <encryptedsecret/> element as a base64-encoded value, and the <expiry/> element contains a timestamp for expiry. <iq type = result id= 123456 > <registered xmlns = urn:xmpp:client - key:0 > < encrypted - secret > WNiIwIqlYfNw44zul2EhUyqIPXE = </ encrypted - secret > <expiry >2017-10 -15 T12:00:00Z </ expiry > </ registered > Note that the expiry time might not be 30 days simply because the client has requested it - the server is free to shorten expiry times. 3.2 Key Revocation Any authenticated client may revoke a key belonging to the same user by sending an <iq/> of type set containing a <revoke/> element qualified by the urn:xmpp:client-key:0 namespace, containing a <key/> element whose text value is the ClientID corresponding to the key to be revoked. <iq type = set id= 123456 > <revoke xmlns = urn:xmpp:client - key:0 > <id >213456-987123 -123987 </ revoke > 3.3 Key Enumeration Any authenticated client may enumerate keys belonging to the same user by sending an <iq/> of type get containing a <list/> element qualified by the urn:xmpp:client-key:0 namespace. 2

5 SECURITY CONSIDERATIONS <iq type = get id= 123456 > <list xmlns = urn:xmpp:client - key:0 /> The server responds with an <iq/> of type result, containing the <list/> element qualified by the urn:xmpp:client-key:0 namespace. This element contains a sequence of <key/> elements each containing (in any order) the <id/>, <name/> and <expiry/> elements as in registration. <iq type = result id= 123456 > <list xmlns = urn:xmpp:client - key:0 > <key > <id >213456-987123 -123987 < name > SuperChatBiscuit on Honest Pete s Mobile OS </ name > <expiry >2017-10 -15 T12:00:00Z </ expiry > </key > <key > <id >313456-987123 -123987 </ iq > <name > SuperChatChocolate on Honest Bob s Mobile OS </ name > <expiry >2018-01 -08 T12:00:00Z </ expiry > </ key > </ list > 4 Determining Support Support for this protocol is advertised as the Disco feature urn:xmpp:client-key:0 ; however clients MAY infer support if the CLIENT-KEY or CLIENT-KEY-PLUS SASL mechanism is supported. 5 Security Considerations Security considerations for this specification are covered within the Internet-Draft draftcridland-kitten-clientkey-00.txt - this specification introduces no further considerations by design, but relies heavily on the guidance given there. 3