No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

xep-0101.xml 6.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <?xml version='1.0' encoding='UTF-8'?>
  2. <!DOCTYPE xep SYSTEM 'xep.dtd' [
  3. <!ENTITY % ents SYSTEM "xep.ent">
  4. %ents;
  5. ]>
  6. <?xml-stylesheet type='text/xsl' href='xep.xsl'?>
  7. <xep>
  8. <header>
  9. <title>HTTP Authentication using Jabber Tickets</title>
  10. <abstract>This document defines a protocol for authenticating HTTP requests using Jabber Tickets.</abstract>
  11. &LEGALNOTICE;
  12. <number>0101</number>
  13. <status>Deferred</status>
  14. <type>Standards Track</type>
  15. <sig>Standards</sig>
  16. <dependencies>
  17. <spec>XMPP Core</spec>
  18. <spec>RFC 2616</spec>
  19. <spec>RFC 2617</spec>
  20. <spec>XEP-0030</spec>
  21. </dependencies>
  22. <supersedes/>
  23. <supersededby/>
  24. <shortname>Not yet assigned</shortname>
  25. <author>
  26. <firstname>Richard</firstname>
  27. <surname>Dobson</surname>
  28. <email>richard@dobson-i.net</email>
  29. <jid>richard@dobson-i.net</jid>
  30. </author>
  31. <revision>
  32. <version>0.2</version>
  33. <date>2004-01-18</date>
  34. <initials>red</initials>
  35. <remark>Expanded introduction, requirements, implementation notes, security concerns, and added server response use case.</remark>
  36. </revision>
  37. <revision>
  38. <version>0.1</version>
  39. <date>2003-06-25</date>
  40. <initials>red</initials>
  41. <remark>Initial version.</remark>
  42. </revision>
  43. </header>
  44. <section1 topic='Introduction'>
  45. <p>Jabber Ticket Authentication is a method of authenticating with HTTP servers using your jabber identification.</p>
  46. <p>This allows you to login to websites using your jabber address in a single sign-on fashion similar to .NET Passport, but unlike .NET Passport is not locked into a single authentication provider.</p>
  47. <p>Tickets also mean the jabber ticket provider and the web server do not need to be tightly integrated for authentication to work, also because its not tightly integrated it means webmasters do not need to setup their own jabber server to provide tickets, they can use a third party provider even a central "tickets.jabber.org". Also because tickets are not tightly integrated it makes it far easier for webmasters to integrate with Jabber, it also makes web farms far more scalable and reliable.</p>
  48. </section1>
  49. <section1 topic='Requirements'>
  50. <p>The motivations for this document are:</p>
  51. <ul>
  52. <li>To provide a method of using a jabber connections authenticated stream to provide a method of authenticating with an HTTP server.</li>
  53. <li>To provide this authentication without needing the jabber ticket component and the webserver to be tightly coupled, this is essential in a web farm environment for scalability.</li>
  54. <li>To make the communication between the jabber client and the server(s) as simple as possible.</li>
  55. </ul>
  56. </section1>
  57. <section1 topic='Use Cases'>
  58. <section2 topic='Client web browser window requests a Jabber Ticket Authentication protected web page'>
  59. <example caption='Request for page'><![CDATA[
  60. GET http://www.webserver.com/webpage.html HTTP/1.1]]></example>
  61. <example caption='The server responds with a 401 and WWW-Authenticate header'><![CDATA[
  62. 401 Unauthorised HTTP/1.1
  63. WWW-Authenticate: JabberTicket realm="ticket.server.com"]]></example>
  64. <p>The realm is the JID you need to request your JabberTicket from.</p>
  65. </section2>
  66. <section2 topic='Client requests JabberTicket'>
  67. <example caption='Request for ticket'><![CDATA[
  68. <iq
  69. to='ticket.server.com'
  70. type='get'
  71. id='ticket1'>
  72. <query xmlns="http://jabber.org/protocol/ticket"/>
  73. </iq>]]></example>
  74. <example caption='Server responds with jabber ticket'><![CDATA[
  75. <iq
  76. to='user@domain.com/resource'
  77. from='ticket.server.com'
  78. type='result'
  79. id='ticket1'>
  80. <query xmlns="http://jabber.org/protocol/ticket">
  81. 54yudvjhssa76dta6sgdst78r4sadsfjdhs...
  82. </query>
  83. </iq>]]></example>
  84. <p>The ticket is encrypted data represented as a string, the client does not need to decode it since it is passed to the webserver unaltered.</p>
  85. </section2>
  86. <section2 topic='Client replies to 401 HTTP error'>
  87. <example caption='Client HTTP request'><![CDATA[
  88. GET http://www.webserver.com/webpage.html HTTP/1.1
  89. Authorization: JabberTicket 54yudvjhssa76dta6sgdst78r4sadsfjdhs...]]></example>
  90. </section2>
  91. <section2 topic='Server responds and allows or denies access to the file'>
  92. <example caption='Server allows access'><![CDATA[
  93. 200 OK HTTP/1.1
  94. Content-Type: text/html]]></example>
  95. <example caption='Server denies access'><![CDATA[
  96. 403 Forbidden HTTP/1.1]]></example>
  97. </section2>
  98. </section1>
  99. <section1 topic='Implementation Notes'>
  100. <p>The following guidelines may assist developers.</p>
  101. <ul>
  102. <li>The ticket can be encrypted however the provider likes since only they will need to understand it.</li>
  103. <li>The ticket must somewhere contain in it the JID of the end user (or some method of knowing who the user is), so that the webserver knows who it is.</li>
  104. <li>It is recommended that your tickets also use an extra level of authentication such as ensuring the User-Agent is the same across requests, that the ip address is the same across requests.</li>
  105. </ul>
  106. </section1>
  107. <section1 topic='Security Considerations'>
  108. <section2 topic='Man in the middle'>
  109. <p>This form of HTTP authentication is susceptable to man in the middle attack where the ticket could be captured and retransmitted by someone else, but this can be solved by using an encrypted jabber connection (e.g. HTTPS) and an HTTPS connection to the webserver.</p>
  110. </section2>
  111. <section2 topic='Key length'>
  112. <p>It is recommended the encryption key length for the ticket be long enough to make it hard to crack the ticket.</p>
  113. </section2>
  114. <section2 topic='Ticket expiration'>
  115. <p>It is recommended the ticket has an expiration and that it be between a few minutes and a few hours, e.g. 60 minutes.</p>
  116. </section2>
  117. </section1>
  118. <section1 topic='IANA Considerations'>
  119. <p>The HTTP authentication scheme "JabberTicket" may need to be registered with IANA.</p>
  120. </section1>
  121. <section1 topic='XMPP Registrar Considerations'>
  122. <p>The &REGISTRAR; will need to register the new namespace of "http://jabber.org/protocol/ticket".</p>
  123. </section1>
  124. </xep>