JSON Web Token (JWT)
RFC 7519 определяет компактный, безопасный для использования в URL формат передачи набора утверждений между двумя сторонами. Утверждения представлены объектом JSON в структуре JWS или JWE, что позволяет применять цифровую подпись, защиту целостности с помощью MAC и/или шифрование; также предусмотрены незащищённые и вложенные JWT. Документ задаёт зарегистрированные имена утверждений, включая iss, sub, aud, exp, nbf, iat и jti, правила использования заголовка JOSE, создания и проверки токенов. Набор утверждений, необходимый для признания JWT действительным, зависит от контекста применения и не определяется этой спецификацией.
Internet Engineering Task Force (IETF) M. Jones
Запрос комментариев: 7519 Microsoft
Категория: На пути к стандарту J. Bradley
ISSN: 2070-1721 Ping Identity
N. Sakimura
NRI
Май 2015
JSON Web Token (JWT)
Аннотация
JSON Web Token (JWT) — это компактное, безопасное для использования
в URL средство представления утверждений, передаваемых между двумя
сторонами. Утверждения в JWT кодируются как объект JSON, который
используется в качестве полезной нагрузки структуры JSON Web
Signature (JWS) или открытого текста структуры JSON Web Encryption
(JWE), что позволяет подписывать утверждения цифровой подписью или
защищать их целостность с помощью кода аутентификации сообщения
(Message Authentication Code, MAC) и/или шифровать их.
Статус этого документа
Этот документ относится к категории документов Интернета «На пути
к стандарту».
Этот документ подготовлен Internet Engineering Task Force (IETF).
Он отражает консенсус сообщества IETF. Он прошёл публичное
рецензирование и был одобрен к публикации Internet Engineering
Steering Group (IESG). Дополнительная информация о стандартах
Интернета приведена в разделе 2 RFC 5741.
Информацию о текущем статусе этого документа, любых исправлениях
и способах предоставления отзывов о нём можно получить по адресу
http://www.rfc-editor.org/info/rfc7519.
Jones и др. На пути к стандарту [Страница 1]
RFC 7519 JSON Web Token (JWT) Май 2015
Уведомление об авторских правах
Copyright (c) 2015 IETF Trust и лица, указанные в качестве авторов
документа. Все права защищены.
На этот документ распространяются BCP 78 и правовые положения
IETF Trust в отношении документов IETF (Legal Provisions Relating
to IETF Documents) (http://trustee.ietf.org/license-info), действующие
на дату публикации этого документа. Внимательно ознакомьтесь с этими
документами, поскольку они описывают ваши права и ограничения
в отношении этого документа. Компоненты кода, извлечённые из этого
документа, должны включать текст Simplified BSD License, как описано
в разделе 4.e правовых положений IETF Trust, и предоставляются без
гарантий, как описано в Simplified BSD License.
Jones и др. На пути к стандарту [Страница 2]
RFC 7519 JSON Web Token (JWT) Май 2015
Содержание
1. Введение ..................................................... 4
1.1. Условные обозначения ...................................... 4
2. Терминология ................................................. 4
3. Обзор JSON Web Token (JWT) .................................... 6
3.1. Пример JWT ................................................ 7
4. Утверждения JWT ............................................... 8
4.1. Зарегистрированные имена утверждений ...................... 9
4.1.1. Утверждение "iss" (издатель) ........................... 9
4.1.2. Утверждение "sub" (субъект) ............................ 9
4.1.3. Утверждение "aud" (аудитория) .......................... 9
4.1.4. Утверждение "exp" (время истечения срока действия) ..... 9
4.1.5. Утверждение "nbf" (не ранее) .......................... 10
4.1.6. Утверждение "iat" (время выпуска) ..................... 10
4.1.7. Утверждение "jti" (идентификатор JWT) ................. 10
4.2. Публичные имена утверждений ............................... 10
4.3. Частные имена утверждений ................................. 10
5. Заголовок JOSE ............................................... 11
5.1. Параметр заголовка "typ" (тип) ............................ 11
5.2. Параметр заголовка "cty" (тип содержимого) ................. 11
5.3. Дублирование утверждений в параметрах заголовка ............ 12
6. Незащищённые JWT .............................................. 12
6.1. Пример незащищённого JWT .................................. 12
7. Создание и проверка JWT ....................................... 13
7.1. Создание JWT ............................................. 13
7.2. Проверка JWT ............................................. 14
7.3. Правила сравнения строк ................................... 15
8. Требования к реализации ....................................... 16
9. URI для указания, что содержимое является JWT ................. 17
10. Вопросы, связанные с IANA ..................................... 17
10.1. Реестр утверждений JSON Web Token ....................... 17
10.1.1. Шаблон регистрации .................................. 18
10.1.2. Первоначальное содержимое реестра .................... 18
10.2. Регистрация подпространства имён
urn:ietf:params:oauth:token-type:jwt .................... 19
10.2.1. Содержимое реестра ................................... 19
10.3. Регистрация типа данных ................................. 20
10.3.1. Содержимое реестра ................................... 20
10.4. Регистрация имён параметров заголовка .................... 20
10.4.1. Содержимое реестра ................................... 21
11. Вопросы безопасности ......................................... 21
11.1. Решения о доверии ........................................ 21
11.2. Порядок подписания и шифрования ........................... 21
12. Вопросы приватности .......................................... 22
13. Ссылки ....................................................... 22
13.1. Нормативные ссылки ....................................... 22
13.2. Информационные ссылки .................................... 23
Jones и др. На пути к стандарту [Страница 3]
RFC 7519 JSON Web Token (JWT) Май 2015
Приложение A. Примеры JWT ........................................ 26
A.1. Пример зашифрованного JWT ................................. 26
A.2. Пример вложенного JWT ..................................... 26
Приложение B. Связь JWT с утверждениями SAML ...................... 28
Приложение C. Связь JWT с Simple Web Tokens (SWT) ................. 28
Благодарности .................................................... 28
Адреса авторов ................................................... 29
1. Введение
JSON Web Token (JWT) — это компактный формат представления
утверждений, предназначенный для сред с ограниченным объёмом
доступного места, таких как заголовки HTTP Authorization и параметры
запроса URI. JWT кодируют передаваемые утверждения как объект JSON
[RFC7159], который используется в качестве полезной нагрузки
структуры JSON Web Signature (JWS) [JWS] или открытого текста
структуры JSON Web Encryption (JWE) [JWE], что позволяет подписывать
утверждения цифровой подписью или защищать их целостность с помощью
кода аутентификации сообщения (Message Authentication Code, MAC)
и/или шифровать их. JWT всегда представляются с использованием
компактной сериализации JWS (JWS Compact Serialization) или
компактной сериализации JWE (JWE Compact Serialization).
JWT предлагается произносить так же, как английское слово "jot".
1.1. Условные обозначения
Ключевые слова «ДОЛЖЕН (MUST)», «НЕ ДОЛЖЕН (MUST NOT)»,
«ДОЛЖЕН (REQUIRED)», «ДОЛЖЕН (SHALL)», «НЕ ДОЛЖЕН (SHALL NOT)»,
«СЛЕДУЕТ (SHOULD)», «НЕ СЛЕДУЕТ (SHOULD NOT)»,
«СЛЕДУЕТ (RECOMMENDED)», «НЕ СЛЕДУЕТ (NOT RECOMMENDED)»,
«МОЖЕТ (MAY)» и «НЕОБЯЗАТЕЛЬНО (OPTIONAL)» в этом документе
интерпретируются в соответствии с "Key words for use in RFCs to
Indicate Requirement Levels" [RFC2119]. Эту интерпретацию следует
применять только тогда, когда термины написаны целиком прописными
буквами.
2. Терминология
Термины «JSON Web Signature (JWS)», «кодирование Base64url
(Base64url Encoding)», «параметр заголовка (Header Parameter)»,
«заголовок JOSE (JOSE Header)», «компактная сериализация JWS
(JWS Compact Serialization)», «полезная нагрузка JWS (JWS Payload)»,
«подпись JWS (JWS Signature)» и «незащищённый JWS (Unsecured JWS)»
определены в спецификации JWS [JWS].
Термины «JSON Web Encryption (JWE)», «ключ шифрования содержимого
(Content Encryption Key, CEK)», «компактная сериализация JWE
(JWE Compact Serialization)», «зашифрованный ключ JWE (JWE Encrypted
Key)» и «вектор инициализации JWE (JWE Initialization Vector)»
определены в спецификации JWE [JWE].
Термины «шифротекст (Ciphertext)», «цифровая подпись (Digital
Signature)», «код аутентификации сообщения (Message Authentication
Code, MAC)» и «открытый текст (Plaintext)» определены в "Internet
Security Glossary, Version 2" [RFC4949].
Jones и др. На пути к стандарту [Страница 4]
RFC 7519 JSON Web Token (JWT) Май 2015
Следующие термины определены в этой спецификации:
JSON Web Token (JWT)
Строка, представляющая набор утверждений в виде объекта JSON,
закодированного в JWS или JWE, что позволяет подписывать
утверждения цифровой подписью или защищать их с помощью MAC
и/или шифровать их.
Набор утверждений JWT (JWT Claims Set)
Объект JSON, содержащий утверждения, передаваемые JWT.
Утверждение (Claim)
Сведение, утверждаемое о некотором субъекте. Утверждение
представляется парой «имя/значение», состоящей из имени
утверждения и значения утверждения.
Имя утверждения (Claim Name)
Часть представления утверждения, содержащая имя. Имя утверждения
всегда является строкой.
Значение утверждения (Claim Value)
Часть представления утверждения, содержащая значение. Значение
утверждения может быть любым значением JSON.
Вложенный JWT (Nested JWT)
JWT, в котором применяются вложенные операции подписания и/или
шифрования. Во вложенных JWT один JWT используется в качестве
полезной нагрузки или открытого текста охватывающей его
структуры JWS или JWE соответственно.
Незащищённый JWT (Unsecured JWT)
JWT, утверждения которого не защищены от нарушения целостности
и не зашифрованы.
Имя, устойчивое к коллизиям (Collision-Resistant Name)
Имя в пространстве имён, позволяющем выделять имена таким образом,
что вероятность их совпадения с другими именами крайне мала.
Примеры пространств имён, устойчивых к коллизиям: доменные имена,
идентификаторы объектов (Object Identifiers, OID), определённые
в сериях рекомендаций ITU-T X.660 и X.670, и универсальные
уникальные идентификаторы (Universally Unique IDentifiers, UUID)
[RFC4122]. При использовании административно делегированного
пространства имён лицо, определяющее имя, должно принять разумные
меры предосторожности, чтобы убедиться, что используемая для
определения имени часть пространства имён находится под его
контролем.
StringOrURI
Строковое значение JSON с дополнительным требованием: хотя
произвольные строковые значения МОГУТ (MAY) использоваться,
любое значение, содержащее символ ":", ДОЛЖНО (MUST) быть URI
[RFC3986]. Значения StringOrURI сравниваются как строки с учётом
регистра без применения каких-либо преобразований или
канонизации.
Jones и др. На пути к стандарту [Страница 5]
RFC 7519 JSON Web Token (JWT) Май 2015
NumericDate
Числовое значение JSON, представляющее количество секунд от
1970-01-01T00:00:00Z UTC до указанной даты и времени UTC без учёта
дополнительных секунд координации. Это эквивалентно определению
"Seconds Since the Epoch" в IEEE Std 1003.1, 2013 Edition
[POSIX.1], в котором каждые сутки учитываются как ровно 86400
секунд, с тем отличием, что здесь могут быть представлены
нецелые значения. Подробности о датах и времени в целом и UTC
в частности см. в RFC 3339 [RFC3339].
3. Обзор JSON Web Token (JWT)
JWT представляют набор утверждений в виде объекта JSON,
закодированного в структуре JWS и/или JWE. Этот объект JSON является
набором утверждений JWT. Согласно разделу 4 RFC 7159 [RFC7159],
объект JSON состоит из нуля или более пар «имя/значение» (или членов),
где имена являются строками, а значения — произвольными значениями
JSON. Эти члены являются утверждениями, представленными JWT. Этот
объект JSON МОЖЕТ (MAY) содержать пробельные символы и/или переводы
строк до или после любых значений JSON или структурных символов
в соответствии с разделом 2 RFC 7159 [RFC7159].
Имена членов в наборе утверждений JWT называются именами утверждений.
Соответствующие значения называются значениями утверждений.
Содержимое заголовка JOSE описывает криптографические операции,
применяемые к набору утверждений JWT. Если заголовок JOSE относится
к JWS, JWT представляется как JWS, а утверждения подписываются
цифровой подписью или защищаются с помощью MAC; при этом набор
утверждений JWT является полезной нагрузкой JWS. Если заголовок
JOSE относится к JWE, JWT представляется как JWE, а утверждения
шифруются; при этом набор утверждений JWT является открытым текстом,
шифруемым JWE. JWT может быть заключён в другую структуру JWE или
JWS для создания вложенного JWT, что позволяет выполнять вложенные
операции подписания и шифрования.
JWT представляется в виде последовательности безопасных для
использования в URL частей, разделённых символами точки ('.').
Каждая часть содержит значение, закодированное с помощью base64url.
Количество частей в JWT зависит от представления результирующего
JWS с использованием компактной сериализации JWS или JWE
с использованием компактной сериализации JWE.
Jones и др. На пути к стандарту [Страница 6]
RFC 7519 JSON Web Token (JWT) Май 2015
3.1. Пример JWT
Следующий пример заголовка JOSE объявляет, что закодированный объект
является JWT, а этот JWT является JWS, защищённым с помощью MAC
с использованием алгоритма HMAC SHA-256:
{"typ":"JWT",
"alg":"HS256"} Чтобы устранить возможные неоднозначности в представлении приведённого выше объекта JSON, ниже также приведена последовательность октетов фактического представления UTF-8, использованного в этом примере для приведённого выше заголовка JOSE. (Обратите внимание, что неоднозначности могут возникать из-за различий в представлении разрывов строк на разных платформах (CRLF или LF), различий в пробелах в начале и конце строк, наличия или отсутствия завершающего разрыва строки в последней строке и по другим причинам. В представлении, используемом в этом примере, первая строка не имеет начальных или конечных пробелов, между первой и второй строками находится разрыв строки CRLF (13, 10), вторая строка имеет один начальный пробел (32) и не имеет конечных пробелов, а последняя строка не имеет завершающего разрыва строки.) Октеты представления UTF-8 заголовка JOSE в этом примере (в записи массива JSON):
[123, 34, 116, 121, 112, 34, 58, 34, 74, 87, 84, 34, 44, 13, 10, 32,
34, 97, 108, 103, 34, 58, 34, 72, 83, 50, 53, 54, 34, 125]
Кодирование октетов представления UTF-8 заголовка JOSE с помощью base64url даёт следующее закодированное значение заголовка JOSE:
eyJ0eXAiOiJKV1QiLA0KICJhbGciOiJIUzI1NiJ9
Ниже приведён пример набора утверждений JWT:
{"iss":"joe",
"exp":1300819380,
"http://example.com/is_root":true}
Следующая последовательность октетов, представляющая использованное в этом примере представление UTF-8 приведённого выше набора утверждений JWT, является полезной нагрузкой JWS:
[123, 34, 105, 115, 115, 34, 58, 34, 106, 111, 101, 34, 44, 13, 10,
32, 34, 101, 120, 112, 34, 58, 49, 51, 48, 48, 56, 49, 57, 51, 56,
48, 44, 13, 10, 32, 34, 104, 116, 116, 112, 58, 47, 47, 101, 120, 97,
109, 112, 108, 101, 46, 99, 111, 109, 47, 105, 115, 95, 114, 111,
111, 116, 34, 58, 116, 114, 117, 101, 125]
Jones, et al. Серия стандартов [Страница 7]
RFC 7519 JSON Web Token (JWT) Май 2015
Кодирование полезной нагрузки JWS с помощью base64url даёт следующую закодированную полезную нагрузку JWS (разрывы строк добавлены только для отображения):
eyJpc3MiOiJqb2UiLA0KICJleHAiOjEzMDA4MTkzODAsDQogImh0dHA6Ly
9leGFtcGxlLmNvbS9pc19yb290Ijp0cnVlfQ
Вычисление MAC закодированного заголовка JOSE и закодированной полезной нагрузки JWS с помощью алгоритма HMAC SHA-256 и кодирование значения HMAC с помощью base64url способом, указанным в [JWS], даёт следующую закодированную подпись JWS:
dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk
Соединение этих закодированных частей в указанном порядке с символами точки ('.') между частями даёт следующий полный JWT (разрывы строк добавлены только для отображения):
eyJ0eXAiOiJKV1QiLA0KICJhbGciOiJIUzI1NiJ9
.
eyJpc3MiOiJqb2UiLA0KICJleHAiOjEzMDA4MTkzODAsDQogImh0dHA6Ly9leGFt
cGxlLmNvbS9pc19yb290Ijp0cnVlfQ
.
dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk
Это вычисление подробнее проиллюстрировано в приложении A.1 документа [JWS]. Пример зашифрованного JWT приведён в приложении A.1.
4. Утверждения JWT
Набор утверждений JWT представляет собой объект JSON, члены которого являются утверждениями, передаваемыми в JWT. Имена утверждений в наборе утверждений JWT ДОЛЖНЫ (MUST) быть уникальными; средства разбора JWT ДОЛЖНЫ (MUST) либо отклонять JWT с повторяющимися именами утверждений, либо использовать средство разбора JSON, которое возвращает только лексически последнее из повторяющихся имён членов, как указано в разделе 15.12 ("The JSON Object") ECMAScript 5.1 [ECMAScript].
Набор утверждений, которые JWT должен содержать, чтобы считаться действительным, зависит от контекста и выходит за рамки этой спецификации. Конкретные применения JWT будут требовать, чтобы реализации понимали и обрабатывали некоторые утверждения определёнными способами. Однако при отсутствии таких требований все утверждения, которые реализации не понимают, ДОЛЖНЫ (MUST) игнорироваться.
Существуют три класса имён утверждений JWT: зарегистрированные имена утверждений, публичные имена утверждений и частные имена утверждений.
Jones, et al. Серия стандартов [Страница 8]
RFC 7519 JSON Web Token (JWT) Май 2015
4.1. Зарегистрированные имена утверждений
Следующие имена утверждений зарегистрированы в реестре IANA "JSON Web Token Claims", учреждённом разделом 10.1. Ни одно из определённых ниже утверждений не предназначено для обязательного использования или реализации во всех случаях; они служат отправной точкой для набора полезных утверждений, обеспечивающих совместимость. Приложениям, использующим JWT, следует определять, какие именно утверждения они используют и когда эти утверждения обязательны или необязательны. Все имена короткие, поскольку одна из основных целей JWT — компактность представления.
4.1.1. Утверждение "iss" (издатель)
Утверждение "iss" (издатель) идентифицирует субъекта, выпустившего JWT. Обработка этого утверждения обычно зависит от приложения. Значение "iss" — строка с учётом регистра, содержащая значение StringOrURI. Использование этого утверждения НЕОБЯЗАТЕЛЬНО (OPTIONAL).
4.1.2. Утверждение "sub" (субъект)
Утверждение "sub" (субъект) идентифицирует субъекта, о котором идёт речь в JWT. Утверждения в JWT обычно представляют собой высказывания об этом субъекте. Значение субъекта ДОЛЖНО (MUST) либо быть локально уникальным в контексте издателя, либо быть глобально уникальным. Обработка этого утверждения обычно зависит от приложения. Значение "sub" — строка с учётом регистра, содержащая значение StringOrURI. Использование этого утверждения НЕОБЯЗАТЕЛЬНО (OPTIONAL).
4.1.3. Утверждение "aud" (аудитория)
Утверждение "aud" (аудитория) идентифицирует получателей, которым предназначен JWT. Каждый субъект, которому предназначено обрабатывать JWT, ДОЛЖЕН (MUST) идентифицировать себя по значению в утверждении аудитории. Если субъект, обрабатывающий утверждение, не идентифицирует себя по значению в утверждении "aud", когда это утверждение присутствует, то JWT ДОЛЖЕН (MUST) быть отклонён. В общем случае значение "aud" представляет собой массив строк с учётом регистра, каждая из которых содержит значение StringOrURI. В частном случае, когда JWT имеет одну аудиторию, значение "aud" МОЖЕТ (MAY) быть одной строкой с учётом регистра, содержащей значение StringOrURI. Интерпретация значений аудитории обычно зависит от приложения. Использование этого утверждения НЕОБЯЗАТЕЛЬНО (OPTIONAL).
4.1.4. Утверждение "exp" (время истечения срока действия)
Утверждение "exp" (время истечения срока действия) указывает время истечения срока действия, при наступлении которого и после которого JWT НЕ ДОЛЖЕН (MUST NOT) приниматься для обработки. Обработка утверждения "exp" требует, чтобы текущие дата и время ДОЛЖНЫ (MUST) были предшествовать дате и времени истечения срока действия, указанным в утверждении "exp".
Jones, et al. Серия стандартов [Страница 9]
RFC 7519 JSON Web Token (JWT) Май 2015
Разработчики реализаций МОГУТ (MAY) предусмотреть небольшой допуск, обычно не более нескольких минут, для учёта расхождения часов. Значение этого утверждения ДОЛЖНО (MUST) быть числом, содержащим значение NumericDate. Использование этого утверждения НЕОБЯЗАТЕЛЬНО (OPTIONAL).
4.1.5. Утверждение "nbf" (не ранее)
Утверждение "nbf" (не ранее) указывает время, до которого JWT НЕ ДОЛЖЕН (MUST NOT) приниматься для обработки. При обработке утверждения "nbf" текущие дата и время ДОЛЖНЫ (MUST) быть не ранее даты и времени, указанных в утверждении "nbf". Разработчики реализаций МОГУТ (MAY) предусмотреть небольшой допуск, обычно не более нескольких минут, для учёта расхождения часов. Значение этого утверждения ДОЛЖНО (MUST) быть числом, содержащим значение NumericDate. Использование этого утверждения НЕОБЯЗАТЕЛЬНО (OPTIONAL).
4.1.6. Утверждение "iat" (время выпуска)
Утверждение "iat" (время выпуска) указывает время, когда был выпущен JWT. Это утверждение может использоваться для определения возраста JWT. Значение этого утверждения ДОЛЖНО (MUST) быть числом, содержащим значение NumericDate. Использование этого утверждения НЕОБЯЗАТЕЛЬНО (OPTIONAL).
4.1.7. Утверждение "jti" (идентификатор JWT)
Утверждение "jti" (идентификатор JWT) предоставляет уникальный идентификатор JWT. Значение идентификатора ДОЛЖНО (MUST) назначаться таким образом, чтобы вероятность случайного назначения того же значения другому объекту данных была пренебрежимо малой; если приложение использует нескольких издателей, коллизии между значениями, создаваемыми разными издателями, также ДОЛЖНЫ (MUST) предотвращаться. Утверждение "jti" может использоваться для предотвращения повторного использования JWT. Значение "jti" — строка с учётом регистра. Использование этого утверждения НЕОБЯЗАТЕЛЬНО (OPTIONAL).
4.2. Публичные имена утверждений
Пользователи JWT могут определять имена утверждений по своему усмотрению. Однако для предотвращения коллизий любое новое имя утверждения следует либо зарегистрировать в реестре IANA "JSON Web Token Claims", учреждённом разделом 10.1, либо сделать публичным именем: значением, содержащим имя, устойчивое к коллизиям. В каждом случае тому, кто определяет имя или значение, необходимо принять разумные меры предосторожности, чтобы убедиться, что используемая им для определения имени утверждения часть пространства имён находится под его контролем.
4.3. Частные имена утверждений
Создатель и потребитель JWT МОГУТ (MAY) договориться об использовании имён утверждений, являющихся частными именами: имён, которые не являются зарегистрированными именами утверждений (раздел 4.1) или публичными именами утверждений (раздел 4.2). В отличие от публичных
Jones, et al. Серия стандартов [Страница 10]
RFC 7519 JSON Web Token (JWT) Май 2015
имён утверждений, частные имена утверждений подвержены коллизиям, и их следует использовать с осторожностью.
5. Заголовок JOSE
Для объекта JWT члены объекта JSON, представленного заголовком JOSE, описывают криптографические операции, применённые к JWT, и, при необходимости, дополнительные свойства JWT. В зависимости от того, является ли JWT объектом JWS или JWE, применяются соответствующие правила для значений заголовка JOSE.
Эта спецификация дополнительно определяет использование следующих параметров заголовка как в случае, когда JWT является JWS, так и в случае, когда он является JWE.
5.1. Параметр заголовка "typ" (тип)
Параметр заголовка "typ" (тип), определённый в [JWS] и [JWE], используется приложениями JWT для объявления типа данных [IANA.MediaTypes] этого полного JWT. Он предназначен для использования приложением JWT в тех случаях, когда в структуре данных приложения, которая может содержать объект JWT, могут также присутствовать значения, не являющиеся JWT; приложение может использовать это значение для различения разных видов объектов, которые могут присутствовать. Обычно приложения не используют его, когда уже известно, что объект является JWT. Этот параметр игнорируется реализациями JWT; любая обработка этого параметра выполняется приложением JWT. Если он присутствует, его значением СЛЕДУЕТ (RECOMMENDED) указывать "JWT", чтобы обозначить, что этот объект является JWT. Хотя имена типов данных не зависят от регистра, "JWT" СЛЕДУЕТ (RECOMMENDED) всегда записывать прописными буквами для совместимости с унаследованными реализациями. Использование этого параметра заголовка НЕОБЯЗАТЕЛЬНО (OPTIONAL).
5.2. Параметр заголовка "cty" (тип содержимого)
Параметр заголовка "cty" (тип содержимого), определённый в [JWS] и [JWE], используется в этой спецификации для передачи структурной информации о JWT.
В обычном случае, когда вложенные операции подписания или шифрования не применяются, использовать этот параметр заголовка НЕ СЛЕДУЕТ (NOT RECOMMENDED). В случае применения вложенного подписания или шифрования этот параметр заголовка ДОЛЖЕН (MUST) присутствовать; в этом случае его значение ДОЛЖНО (MUST) быть "JWT", чтобы указать, что в этом JWT передаётся вложенный JWT. Хотя имена типов данных не зависят от регистра, "JWT" СЛЕДУЕТ (RECOMMENDED) всегда записывать прописными буквами для совместимости с унаследованными реализациями. Пример вложенного JWT приведён в приложении A.2.
Jones, et al. Серия стандартов [Страница 11]
RFC 7519 JSON Web Token (JWT) Май 2015
5.3. Дублирование утверждений в параметрах заголовка
В некоторых приложениях, использующих зашифрованные JWT, полезно иметь незашифрованное представление некоторых утверждений. Например, оно может использоваться в правилах обработки приложения для определения того, следует ли обрабатывать JWT и каким образом, прежде чем он будет расшифрован.
Эта спецификация разрешает дублировать утверждения, присутствующие в наборе утверждений JWT, в виде параметров заголовка в JWT, являющемся JWE, по мере необходимости для приложения. Если такие дублированные утверждения присутствуют, принимающему их приложению СЛЕДУЕТ (SHOULD) проверить, что их значения идентичны, если только приложение не определяет иные конкретные правила обработки этих утверждений. Приложение несёт ответственность за обеспечение того, чтобы в качестве значений параметров заголовка в JWT дублировались только утверждения, которые безопасно передавать в незашифрованном виде.
Раздел 10.4.1 этой спецификации регистрирует имена параметров заголовка "iss" (издатель), "sub" (субъект) и "aud" (аудитория) для предоставления незашифрованных копий этих утверждений в зашифрованных JWT приложениям, которым они необходимы. Другие спецификации аналогичным образом МОГУТ (MAY) по мере необходимости регистрировать другие имена, являющиеся зарегистрированными именами утверждений, в качестве имён параметров заголовка.
6. Незащищённые JWT
Для поддержки сценариев использования, в которых содержимое JWT защищается средствами, отличными от подписи и/или шифрования, содержащихся в самом JWT (например, подписью структуры данных, содержащей JWT), JWT также МОГУТ (MAY) создаваться без подписи или шифрования. Незащищённый JWT — это JWS со значением "none" параметра заголовка "alg" и пустой строкой в качестве значения подписи JWS, как определено в спецификации JWA [JWA]; это незащищённый JWS, полезной нагрузкой JWS которого является набор утверждений JWT.
6.1. Пример незащищённого JWT
Следующий пример заголовка JOSE объявляет, что закодированный объект является незащищённым JWT:
{"alg":"none"}
Кодирование октетов представления UTF-8 заголовка JOSE с помощью base64url даёт следующее закодированное значение заголовка JOSE:
eyJhbGciOiJub25lIn0
Jones, et al. Серия стандартов [Страница 12]
RFC 7519 JSON Web Token (JWT) Май 2015
Ниже приведён пример набора утверждений JWT: {"iss":"joe",
"exp":1300819380,
"http://example.com/is_root":true}
Кодирование base64url октетов представления набора утверждений JWT в UTF-8 даёт следующую закодированную полезную нагрузку JWS (переносы строк добавлены только для отображения):
eyJpc3MiOiJqb2UiLA0KICJleHAiOjEzMDA4MTkzODAsDQogImh0dHA6Ly9leGFt
cGxlLmNvbS9pc19yb290Ijp0cnVlfQ
Закодированная подпись JWS представляет собой пустую строку.
Соединение этих закодированных частей в указанном порядке с символами точки ('.') между частями даёт следующий полный JWT (переносы строк добавлены только для отображения):
eyJhbGciOiJub25lIn0
.
eyJpc3MiOiJqb2UiLA0KICJleHAiOjEzMDA4MTkzODAsDQogImh0dHA6Ly9leGFt
cGxlLmNvbS9pc19yb290Ijp0cnVlfQ
.
7. Создание и проверка JWT
7.1. Создание JWT
Для создания JWT выполняются следующие шаги. Порядок шагов не имеет значения в тех случаях, когда между входными и выходными данными шагов нет зависимостей.
1. Создать набор утверждений JWT, содержащий нужные утверждения. Обратите внимание, что пробельные символы явно разрешены в представлении и перед кодированием не требуется выполнять канонизацию.
2. Принять за Сообщение октеты представления набора утверждений JWT в UTF-8.
3. Создать заголовок JOSE, содержащий нужный набор параметров заголовка. JWT ДОЛЖЕН (MUST) соответствовать спецификации [JWS] или [JWE]. Обратите внимание, что пробельные символы явно разрешены в представлении и перед кодированием не требуется выполнять канонизацию.
Jones, et al. Standards Track [Страница 13]
RFC 7519 JSON Web Token (JWT) Май 2015
4. В зависимости от того, является JWT структурой JWS или JWE, возможны два случая:
* Если JWT является структурой JWS, создать JWS, используя Сообщение в качестве полезной нагрузки JWS; все шаги, указанные в [JWS] для создания JWS, ДОЛЖНЫ (MUST) быть выполнены.
* В противном случае, если JWT является структурой JWE, создать JWE, используя Сообщение в качестве открытого текста для JWE; все шаги, указанные в [JWE] для создания JWE, ДОЛЖНЫ (MUST) быть выполнены.
5. Если будет выполняться вложенная операция подписания или шифрования, принять за Сообщение структуру JWS или JWE и вернуться к шагу 3, используя значение "JWT" для "cty" (тип содержимого) в новом заголовке JOSE, создаваемом на этом шаге.
6. В противном случае принять структуру JWS или JWE за результирующий JWT.
7.2. Проверка JWT
При проверке JWT выполняются следующие шаги. Порядок шагов не имеет значения в тех случаях, когда между входными и выходными данными шагов нет зависимостей. Если какой-либо из перечисленных шагов завершается неудачей, JWT ДОЛЖЕН (MUST) быть отклонён, то есть обработан приложением как недопустимые входные данные.
1. Убедиться, что JWT содержит хотя бы один символ точки ('.').
2. Принять за Закодированный заголовок JOSE часть JWT, предшествующую первому символу точки ('.').
3. Декодировать Закодированный заголовок JOSE из base64url, соблюдая ограничение, согласно которому в нём не должны использоваться переносы строк, пробельные или какие-либо иные дополнительные символы.
4. Убедиться, что полученная последовательность октетов представляет собой закодированное в UTF-8 представление полностью корректного объекта JSON, соответствующего RFC 7159 [RFC7159]; принять этот объект JSON за заголовок JOSE.
5. Убедиться, что полученный заголовок JOSE включает только такие параметры и значения, синтаксис и семантика которых понятны и поддерживаются либо для которых предписано игнорирование, если они непонятны.
6. Определить, является JWT структурой JWS или JWE, используя любой из методов, описанных в разделе 9 [JWE].
Jones, et al. Standards Track [Страница 14]
RFC 7519 JSON Web Token (JWT) Май 2015
7. В зависимости от того, является JWT структурой JWS или JWE, возможны два случая:
* Если JWT является структурой JWS, выполнить шаги, указанные в [JWS] для проверки JWS. Принять за Сообщение результат декодирования полезной нагрузки JWS из base64url.
* В противном случае, если JWT является структурой JWE, выполнить шаги, указанные в [JWE] для проверки JWE. Принять за Сообщение полученный открытый текст.
8. Если заголовок JOSE содержит значение "JWT" для "cty" (тип содержимого), то Сообщение является JWT, над которым выполнялись вложенные операции подписания или шифрования. В этом случае вернуться к шагу 1, используя Сообщение в качестве JWT.
9. В противном случае декодировать Сообщение из base64url, соблюдая ограничение, согласно которому в нём не должны использоваться переносы строк, пробельные или какие-либо иные дополнительные символы.
10. Убедиться, что полученная последовательность октетов представляет собой закодированное в UTF-8 представление полностью корректного объекта JSON, соответствующего RFC 7159 [RFC7159]; принять этот объект JSON за набор утверждений JWT.
Наконец, обратите внимание, что решение о том, какие алгоритмы могут использоваться в данном контексте, принимает приложение. Даже если JWT может успешно пройти проверку, приложению СЛЕДУЕТ (SHOULD) отклонить JWT, если использованные в нём алгоритмы неприемлемы для приложения.
7.3. Правила сравнения строк
Обработка JWT неизбежно требует сравнения известных строк с членами объектов JSON и их значениями. Например, при определении алгоритма строка Unicode [UNICODE], кодирующая "alg", будет сравниваться с именами членов заголовка JOSE, чтобы выяснить, имеется ли совпадающее имя параметра заголовка.
Правила JSON для сравнения имён членов описаны в разделе 8.3 RFC 7159 [RFC7159]. Поскольку единственными выполняемыми операциями сравнения строк являются проверки на равенство и неравенство, одни и те же правила можно использовать для сравнения с известными строками как имён членов, так и их значений.
Эти правила сравнения ДОЛЖНЫ (MUST) использоваться для всех сравнений строк JSON, кроме случаев, когда в определении члена явно указано, что для значения этого члена должно использоваться другое правило сравнения. В данной спецификации эти правила сравнения не используются только для значений членов "typ" и "cty".
Jones, et al. Standards Track [Страница 15]
RFC 7519 JSON Web Token (JWT) Май 2015
Некоторые приложения могут включать информацию, не зависящую от регистра, в значение, чувствительное к регистру, например включать имя DNS как часть значения утверждения "iss" (издатель). В таких случаях приложению может потребоваться определить соглашение о каноническом регистре, используемом для представления частей, не зависящих от регистра, например о приведении их к нижнему регистру, если нескольким сторонам может потребоваться сформировать одно и то же значение для последующего сравнения. (Однако если все остальные стороны используют любое значение, выданное формирующей стороной, без изменений и без попыток сравнить его с независимо сформированным значением, регистр, использованный формирующей стороной, не будет иметь значения.)
8. Требования к реализации
В этом разделе определяется, какие алгоритмы и возможности данной спецификации обязательны для реализации. Приложения, использующие эту спецификацию, могут предъявлять дополнительные требования к используемым ими реализациям. Например, одно приложение может требовать поддержки зашифрованных JWT и вложенных JWT, тогда как другое может требовать поддержки подписания JWT с помощью Elliptic Curve Digital Signature Algorithm (ECDSA) с использованием кривой P-256 и алгоритма хеширования SHA-256 ("ES256").
Из алгоритмов подписи и MAC, указанных в JSON Web Algorithms [JWA], обязательными для реализации являются только HMAC SHA-256 ("HS256") и "none"; соответствующие данной спецификации реализации JWT ДОЛЖНЫ (MUST) их реализовывать. Реализациям также СЛЕДУЕТ (RECOMMENDED) поддерживать RSASSA-PKCS1-v1_5 с алгоритмом хеширования SHA-256 ("RS256") и ECDSA с использованием кривой P-256 и алгоритма хеширования SHA-256 ("ES256"). Поддержка других алгоритмов и размеров ключей НЕОБЯЗАТЕЛЬНА (OPTIONAL).
Поддержка зашифрованных JWT НЕОБЯЗАТЕЛЬНА (OPTIONAL). Если реализация предоставляет возможности шифрования, то из алгоритмов шифрования, указанных в [JWA], обязательными для реализации являются только RSAES-PKCS1-v1_5 с 2048-битными ключами ("RSA1_5"), AES Key Wrap со 128- и 256-битными ключами ("A128KW" и "A256KW") и составной алгоритм аутентифицированного шифрования с использованием AES-CBC и HMAC SHA-2 ("A128CBC-HS256" и "A256CBC-HS512"); соответствующие данной спецификации реализации с возможностями шифрования ДОЛЖНЫ (MUST) их реализовывать. Реализациям также СЛЕДУЕТ (RECOMMENDED) поддерживать использование Elliptic Curve Diffie-Hellman Ephemeral Static (ECDH-ES) для согласования ключа, используемого для обёртывания ключа шифрования содержимого ("ECDH-ES+A128KW" и "ECDH-ES+A256KW"), и AES в режиме Galois/Counter Mode (GCM) со 128- и 256-битными ключами ("A128GCM" и "A256GCM"). Поддержка других алгоритмов и размеров ключей НЕОБЯЗАТЕЛЬНА (OPTIONAL).
Поддержка вложенных JWT НЕОБЯЗАТЕЛЬНА (OPTIONAL).
Jones, et al. Standards Track [Страница 16]
RFC 7519 JSON Web Token (JWT) Май 2015
9. URI для объявления содержимого как JWT
Данная спецификация регистрирует URN "urn:ietf:params:oauth:token-type:jwt" для использования приложениями, которые объявляют типы содержимого с помощью URI (а не, например, типов медиа), чтобы указывать, что содержимое, на которое ссылаются, является JWT.
10. Вопросы IANA
10.1. Реестр JSON Web Token Claims
В этом разделе учреждается реестр IANA "JSON Web Token Claims" для имён утверждений JWT. В реестре записываются имя утверждения и ссылка на спецификацию, которая его определяет. В этом разделе регистрируются имена утверждений, определённые в разделе 4.1.
Значения регистрируются в соответствии с политикой Specification Required [RFC5226] после трёхнедельного периода рассмотрения в списке рассылки jwt-reg-review@ietf.org по рекомендации одного или нескольких назначенных экспертов. Однако, чтобы обеспечить возможность выделения значений до публикации, назначенные эксперты могут одобрить регистрацию, как только убедятся, что такая спецификация будет опубликована.
Запросы на регистрацию, отправляемые в список рассылки для рассмотрения, следует снабжать подходящей темой (например, "Request to register claim: example").
В течение периода рассмотрения назначенные эксперты либо одобрят, либо отклонят запрос на регистрацию, сообщив это решение в список рассылки для рассмотрения и в IANA. Отказы следует сопровождать объяснением и, если применимо, предложениями о том, как добиться одобрения запроса. Запросы на регистрацию, по которым решение не принято в течение более чем 21 дня, можно передать на рассмотрение IESG (через список рассылки iesg@ietf.org) для разрешения вопроса.
Критерии, которые следует применять назначенным экспертам, включают определение того, дублирует ли предлагаемая регистрация существующие функциональные возможности, будет ли она, вероятно, иметь общее применение или полезна лишь для одного приложения, а также ясно ли изложено описание регистрации.
IANA должна принимать обновления реестра только от назначенных экспертов; ей следует направлять все запросы на регистрацию в список рассылки для рассмотрения.
Предлагается назначать нескольких назначенных экспертов, способных представлять точки зрения разных приложений, использующих данную спецификацию, чтобы обеспечить всесторонне информированное рассмотрение регистрационных решений. В случаях, когда решение о регистрации может
Jones, et al. Standards Track [Страница 17]
RFC 7519 JSON Web Token (JWT) Май 2015
восприниматься как создающее конфликт интересов для конкретного эксперта, этому эксперту следует положиться на суждение других экспертов.
10.1.1. Шаблон регистрации
Claim Name:
Запрашиваемое имя (например, "iss"). Поскольку одна из основных целей данной спецификации — компактность получаемых представлений, СЛЕДУЕТ (RECOMMENDED) выбирать короткое имя, то есть не превышающее 8 символов без веской причины. Это имя чувствительно к регистру. Имена не могут совпадать с другими зарегистрированными именами при сравнении без учёта регистра, если только назначенные эксперты не укажут, что имеется веская причина разрешить исключение.
Claim Description:
Краткое описание утверждения (например, "Issuer").
Change Controller:
Для RFC категории Standards Track указать "IESG". Для остальных указать имя ответственной стороны. Также могут быть включены другие сведения (например, почтовый адрес, адрес электронной почты, URI домашней страницы).
Specification Document(s):
Ссылка на документ или документы, определяющие параметр, желательно с URI, которые можно использовать для получения копий документов. Также можно указать соответствующие разделы, но это не требуется.
10.1.2. Первоначальное содержимое реестра
o Claim Name: "iss"
o Claim Description: Issuer
o Change Controller: IESG
o Specification Document(s): Section 4.1.1 of RFC 7519
o Claim Name: "sub"
o Claim Description: Subject
o Change Controller: IESG
o Specification Document(s): Section 4.1.2 of RFC 7519
o Claim Name: "aud"
o Claim Description: Audience
o Change Controller: IESG
o Specification Document(s): Section 4.1.3 of RFC 7519
Jones, et al. Standards Track [Страница 18]
RFC 7519 JSON Web Token (JWT) Май 2015
o Claim Name: "exp"
o Claim Description: Expiration Time
o Change Controller: IESG
o Specification Document(s): Section 4.1.4 of RFC 7519
o Claim Name: "nbf"
o Claim Description: Not Before
o Change Controller: IESG
o Specification Document(s): Section 4.1.5 of RFC 7519
o Claim Name: "iat"
o Claim Description: Issued At
o Change Controller: IESG
o Specification Document(s): Section 4.1.6 of RFC 7519 o Имя утверждения: "jti"
o Описание утверждения: идентификатор JWT
o Ответственный за изменения: IESG
o Документ(ы) спецификации: раздел 4.1.7 RFC 7519
10.2. Регистрация подпространства имён
urn:ietf:params:oauth:token-type:jwt
10.2.1. Содержимое реестра
В этом разделе в реестре IANA "OAuth URI", учреждённом документом
"An IETF URN Sub-Namespace for OAuth" [RFC6755], регистрируется
значение "token-type:jwt", которое можно использовать для указания
того, что содержимое является JWT.
o URN: urn:ietf:params:oauth:token-type:jwt
o Общее название: JSON Web Token (JWT) Token Type
o Ответственный за изменения: IESG
o Документ(ы) спецификации: RFC 7519
Jones, et al. Путь стандартизации [Страница 19]
RFC 7519 JSON Web Token (JWT) Май 2015
10.3. Регистрация типа мультимедиа
10.3.1. Содержимое реестра
В этом разделе в реестре "Media Types" [IANA.MediaTypes] способом,
описанным в RFC 6838 [RFC6838], регистрируется тип мультимедиа
"application/jwt" [RFC2046], который можно использовать для указания
того, что содержимое является JWT.
o Имя типа: application
o Имя подтипа: jwt
o Обязательные параметры: n/a
o Необязательные параметры: n/a
o Соображения относительно кодирования: 8bit; значения JWT кодируются
как последовательность значений, закодированных с помощью base64url
(некоторые из них могут быть пустой строкой), разделённых символами
точки ('.').
o Соображения безопасности: см. раздел «Соображения безопасности»
RFC 7519
o Соображения совместимости: n/a
o Опубликованная спецификация: RFC 7519
o Приложения, использующие этот тип мультимедиа: OpenID Connect, Mozilla
Persona, Salesforce, Google, Android, Windows Azure, Amazon Web
Services и многие другие
o Соображения относительно идентификаторов фрагментов: n/a
o Дополнительная информация:
Магическое число (числа): n/a
Расширение (расширения) файла: n/a
Код(ы) типа файла Macintosh: n/a
o Контактное лицо и адрес электронной почты для получения
дополнительной информации:
Michael B. Jones, mbj@microsoft.com
o Предполагаемое использование: COMMON
o Ограничения на использование: отсутствуют
o Автор: Michael B. Jones, mbj@microsoft.com
o Ответственный за изменения: IESG
o Предварительная регистрация? Нет
10.4. Регистрация имён параметров заголовка
В этом разделе определённые имена утверждений из раздела 4.1
регистрируются в реестре IANA "JSON Web Signature and Encryption
Header Parameters", учреждённом [JWS], для использования утверждениями,
дублируемыми в качестве параметров заголовка в JWE согласно разделу 5.3.
Jones, et al. Путь стандартизации [Страница 20]
RFC 7519 JSON Web Token (JWT) Май 2015
10.4.1. Содержимое реестра
o Имя параметра заголовка: "iss"
o Описание параметра заголовка: издатель
o Место (места) использования параметра заголовка: JWE
o Ответственный за изменения: IESG
o Документ(ы) спецификации: раздел 4.1.1 RFC 7519
o Имя параметра заголовка: "sub"
o Описание параметра заголовка: субъект
o Место (места) использования параметра заголовка: JWE
o Ответственный за изменения: IESG
o Документ(ы) спецификации: раздел 4.1.2 RFC 7519
o Имя параметра заголовка: "aud"
o Описание параметра заголовка: аудитория
o Место (места) использования параметра заголовка: JWE
o Ответственный за изменения: IESG
o Документ(ы) спецификации: раздел 4.1.3 RFC 7519
11. Соображения безопасности
Агенты JWT/JWS/JWE/JWK должны решать все вопросы безопасности,
относящиеся к любому криптографическому приложению. К числу этих
вопросов относятся защита закрытых ключей пользователя для
асимметричной криптографии и его секретных симметричных ключей,
а также применение мер противодействия различным атакам.
Все соображения безопасности из спецификации JWS также применимы
к JWT, как и соображения безопасности JWE, когда используется
шифрование. В частности, разделы 10.12 («Соображения безопасности
JSON») и 10.13 («Соображения безопасности при сравнении Unicode»)
[JWS] в равной мере применимы к набору утверждений JWT тем же
образом, что и к заголовку JOSE.
11.1. Решения о доверии
На содержимое JWT нельзя полагаться при принятии решения о доверии,
если оно не защищено криптографическими средствами или не привязано
к контексту, необходимому для принятия такого решения. В частности,
обычно потребуется возможность проверить, что ключ(и), используемые
для подписания и/или шифрования JWT, находятся под контролем стороны,
указанной в качестве издателя JWT.
11.2. Порядок подписания и шифрования
Хотя с точки зрения синтаксиса операции подписания и шифрования для
вложенных JWT могут применяться в любом порядке, если необходимы
и подписание, и шифрование, создателям обычно следует подписывать
сообщение, а затем
Jones, et al. Путь стандартизации [Страница 21]
RFC 7519 JSON Web Token (JWT) Май 2015
шифровать результат (тем самым шифруя подпись). Это предотвращает
атаки, при которых подпись удаляется и остаётся лишь зашифрованное
сообщение, а также обеспечивает приватность подписанта. Кроме того,
во многих юрисдикциях подписи зашифрованного текста не считаются
действительными.
Обратите внимание, что потенциальные проблемы безопасности,
связанные с порядком операций подписания и шифрования, уже учтены
в базовых спецификациях JWS и JWE; в частности, поскольку JWE
поддерживает только использование алгоритмов аутентифицированного
шифрования, криптографические соображения относительно возможной
необходимости подписания после шифрования, применимые во многих
контекстах, к этой спецификации не применимы.
12. Соображения приватности
JWT может содержать информацию, чувствительную с точки зрения
приватности. В таком случае ДОЛЖНЫ (MUST) быть приняты меры,
предотвращающие раскрытие этой информации сторонам, которым она
не предназначена. Один из способов добиться этого — использовать
зашифрованный JWT и аутентифицировать получателя. Другой способ —
обеспечить передачу JWT, содержащих незашифрованную информацию,
чувствительную с точки зрения приватности, только по протоколам,
использующим шифрование и поддерживающим аутентификацию конечных
точек, таким как Transport Layer Security (TLS). Исключение из JWT
информации, чувствительной с точки зрения приватности, — простейший
способ свести проблемы приватности к минимуму.
13. Ссылки
13.1. Нормативные ссылки
[ECMAScript]
Ecma International, "ECMAScript Language Specification,
5.1 Edition", ECMA Standard 262, June 2011,
<http://www.ecma-international.org/ecma-262/5.1/
ECMA-262.pdf>.
[IANA.MediaTypes]
IANA, "Media Types",
<http://www.iana.org/assignments/media-types>.
[JWA] Jones, M., "JSON Web Algorithms (JWA)", RFC 7518,
DOI 10.17487/RFC7518, May 2015,
<http://www.rfc-editor.org/info/rfc7518>.
[JWE] Jones, M. and J. Hildebrand, "JSON Web Encryption (JWE)",
RFC 7516, DOI 10.17487/RFC7516, May 2015,
<http://www.rfc-editor.org/info/rfc7516>.
Jones, et al. Путь стандартизации [Страница 22]
RFC 7519 JSON Web Token (JWT) Май 2015
[JWS] Jones, M., Bradley, J., and N. Sakimura, "JSON Web
Signature (JWS)", RFC 7515, DOI 10.17487/RFC, May 2015,
<http://www.rfc-editor.org/info/rfc7515>.
[RFC20] Cerf, V., "ASCII format for Network Interchange", STD 80,
RFC 20, DOI 10.17487/RFC0020, October 1969,
<http://www.rfc-editor.org/info/rfc20>.
[RFC2046] Freed, N. and N. Borenstein, "Multipurpose Internet Mail
Extensions (MIME) Part Two: Media Types", RFC 2046,
DOI 10.17487/RFC2046, November 1996,
<http://www.rfc-editor.org/info/rfc2046>.
[RFC2119] Bradner, S., "Key words for use in RFCs to Indicate
Requirement Levels", BCP 14, RFC 2119,
DOI 10.17487/RFC2119, March 1997,
<http://www.rfc-editor.org/info/rfc2119>.
[RFC3986] Berners-Lee, T., Fielding, R., and L. Masinter, "Uniform
Resource Identifier (URI): Generic Syntax", STD 66,
RFC 3986, DOI 10.17487/RFC3986, January 2005,
<http://www.rfc-editor.org/info/rfc3986>.
[RFC4949] Shirey, R., "Internet Security Glossary, Version 2",
FYI 36, RFC 4949, DOI 10.17487/RFC4949, August 2007,
<http://www.rfc-editor.org/info/rfc4949>.
[RFC7159] Bray, T., Ed., "The JavaScript Object Notation (JSON) Data
Interchange Format", RFC 7159, DOI 10.17487/RFC7159, March
2014, <http://www.rfc-editor.org/info/rfc7159>.
[UNICODE] The Unicode Consortium, "The Unicode Standard",
<http://www.unicode.org/versions/latest/>.
13.2. Информационные ссылки
[CanvasApp]
Facebook, "Canvas Applications", 2010,
<http://developers.facebook.com/docs/authentication/
canvas>.
[JSS] Bradley, J. and N. Sakimura (editor), "JSON Simple Sign",
September 2010, <http://jsonenc.info/jss/1.0/>.
Jones, et al. Путь стандартизации [Страница 23]
RFC 7519 JSON Web Token (JWT) Май 2015
[MagicSignatures]
Panzer, J., Ed., Laurie, B., and D. Balfanz, "Magic
Signatures", January 2011,
<http://salmon-protocol.googlecode.com/svn/
trunk/draft-panzer-magicsig-01.html>.
[OASIS.saml-core-2.0-os]
Cantor, S., Kemp, J., Philpott, R., and E. Maler,
"Assertions and Protocols for the OASIS Security Assertion
Markup Language (SAML) V2.0", OASIS Standard
saml-core-2.0-os, March 2005,
<http://docs.oasis-open.org/security/saml/v2.0/
saml-core-2.0-os.pdf>.
[POSIX.1] IEEE, "The Open Group Base Specifications Issue 7", IEEE
Std 1003.1, 2013 Edition, 2013,
<http://pubs.opengroup.org/onlinepubs/9699919799/
basedefs/V1_chap04.html#tag_04_15>.
[RFC3275] Eastlake 3rd, D., Reagle, J., and D. Solo, "(Extensible
Markup Language) XML-Signature Syntax and Processing",
RFC 3275, DOI 10.17487/RFC3275, March 2002,
<http://www.rfc-editor.org/info/rfc3275>.
[RFC3339] Klyne, G. and C. Newman, "Date and Time on the Internet:
Timestamps", RFC 3339, DOI 10.17487/RFC3339, July 2002,
<http://www.rfc-editor.org/info/rfc3339>.
[RFC4122] Leach, P., Mealling, M., and R. Salz, "A Universally
Unique IDentifier (UUID) URN Namespace", RFC 4122,
DOI 10.17487/RFC4122, July 2005,
<http://www.rfc-editor.org/info/rfc4122>.
[RFC5226] Narten, T. and H. Alvestrand, "Guidelines for Writing an
IANA Considerations Section in RFCs", BCP 26, RFC 5226,
DOI 10.17487/RFC5226, May 2008,
<http://www.rfc-editor.org/info/rfc5226>.
[RFC6755] Campbell, B. and H. Tschofenig, "An IETF URN Sub-Namespace
for OAuth", RFC 6755, DOI 10.17487/RFC6755, October 2012,
<http://www.rfc-editor.org/info/rfc6755>.
[RFC6838] Freed, N., Klensin, J., and T. Hansen, "Media Type
Specifications and Registration Procedures", BCP 13,
RFC 6838, DOI 10.17487/RFC6838, January 2013,
<http://www.rfc-editor.org/info/rfc6838>.
Jones, et al. Путь стандартизации [Страница 24]
RFC 7519 JSON Web Token (JWT) Май 2015
[SWT] Hardt, D. and Y. Goland, "Simple Web Token (SWT)", Version
0.9.5.1, November 2009, <http://msdn.microsoft.com/en-us/
library/windowsazure/hh781551.aspx>.
[W3C.CR-xml11-20060816]
Cowan, J., "Extensible Markup Language (XML) 1.1 (Second
Edition)", World Wide Web Consortium Recommendation
REC-xml11-20060816, August 2006,
<http://www.w3.org/TR/2006/REC-xml11-20060816>.
[W3C.REC-xml-c14n-20010315]
Boyer, J., "Canonical XML Version 1.0", World Wide Web
Consortium Recommendation REC-xml-c14n-20010315, March
2001, <http://www.w3.org/TR/2001/REC-xml-c14n-20010315>.
Jones, et al. Путь стандартизации [Страница 25]
RFC 7519 JSON Web Token (JWT) Май 2015
Приложение A. Примеры JWT
Этот раздел содержит примеры JWT. Другие примеры JWT см. в разделе 6.1
этого документа и приложениях A.1–A.3 [JWS].
A.1. Пример зашифрованного JWT
В этом примере те же утверждения, что использованы в разделе 3.1,
шифруются для получателя с использованием RSAES-PKCS1-v1_5
и AES_128_CBC_HMAC_SHA_256.
Следующий пример заголовка JOSE объявляет, что:
o Ключ шифрования содержимого шифруется для получателя с использованием
алгоритма RSAES-PKCS1-v1_5 для получения зашифрованного ключа JWE.
o К открытому тексту применяется аутентифицированное шифрование
с использованием алгоритма AES_128_CBC_HMAC_SHA_256 для получения
шифротекста JWE и тега аутентификации JWE.
{"alg":"RSA1_5","enc":"A128CBC-HS256"}
За исключением использования октетов представления набора утверждений
JWT из раздела 3.1 в UTF-8 в качестве значения открытого текста,
вычисление этого JWT идентично вычислению JWE в приложении A.2 [JWE],
в том числе в отношении используемых ключей.
Конечный результат в этом примере (переносы строк добавлены только
для отображения): eyJhbGciOiJSU0ExXzUiLCJlbmMiOiJBMTI4Q0JDLUhTMjU2In0.
QR1Owv2ug2WyPBnbQrRARTeEk9kDO2w8qDcjiHnSJflSdv1iNqhWXaKH4MqAkQtM
oNfABIPJaZm0HaA415sv3aeuBWnD8J-Ui7Ah6cWafs3ZwwFKDFUUsWHSK-IPKxLG
TkND09XyjORj_CHAgOPJ-Sd8ONQRnJvWn_hXV1BNMHzUjPyYwEsRhDhzjAD26ima
sOTsgruobpYGoQcXUwFDn7moXPRfDE8-NoQX7N7ZYMmpUDkR-Cx9obNGwJQ3nM52
YCitxoQVPzjbl7WBuB7AohdBoZOdZ24WlN1lVIeh8v1K4krB8xgKvRU8kgFrEn_a
1rZgN5TiysnmzTROF869lQ.
AxY8DCtDaGlsbGljb3RoZQ.
MKOle7UQrG6nSxTLX6Mqwt0orbHvAKeWnDYvpIAeZ72deHxz3roJDXQyhxx0wKaM
HDjUEOKIwrtkHthpqEanSBNYHZgmNOV7sln1Eu9g3J8.
fiK51VwhsxJ-siBMR-YFiA
A.2. Пример вложенного JWT
Этот пример показывает, как JWT можно использовать в качестве полезной
нагрузки JWE или JWS для создания вложенного JWT. В данном случае набор
утверждений JWT сначала подписывается, а затем шифруется.
Jones и др. В русле стандартов [Страница 26]
RFC 7519 JSON Web Token (JWT) Май 2015
Внутренний подписанный JWT идентичен примеру в приложении A.2 документа
[JWS]. Поэтому его вычисление здесь не повторяется. Затем в этом примере
внутренний JWT шифруется для получателя с использованием
RSAES-PKCS1-v1_5 и AES_128_CBC_HMAC_SHA_256.
Приведённый ниже пример заголовка JOSE объявляет следующее:
o Ключ шифрования содержимого шифруется для получателя с использованием
алгоритма RSAES-PKCS1-v1_5, в результате чего получается зашифрованный
ключ JWE.
o К открытому тексту применяется аутентифицированное шифрование с
использованием алгоритма AES_128_CBC_HMAC_SHA_256, в результате чего
получаются шифротекст JWE и тег аутентификации JWE.
o Открытый текст сам является JWT.
{"alg":"RSA1_5","enc":"A128CBC-HS256","cty":"JWT"}
Кодирование октетов UTF-8-представления заголовка JOSE в base64url даёт
следующее значение закодированного заголовка JOSE:
eyJhbGciOiJSU0ExXzUiLCJlbmMiOiJBMTI4Q0JDLUhTMjU2IiwiY3R5IjoiSldUIn0
Вычисление этого JWT идентично вычислению JWE в приложении A.2 документа
[JWE], за исключением того, что используются другие значения заголовка
JOSE, открытого текста, вектора инициализации JWE и ключа шифрования
содержимого. (Используется тот же ключ RSA.)
В качестве открытого текста используются октеты ASCII-представления
[RFC20] JWT, приведённого в конце приложения A.2.1 документа [JWS]
(с удалением всех пробельных символов и разрывов строк); это
последовательность из 458 октетов.
Используемое значение вектора инициализации JWE (в записи в виде
массива JSON):
[82, 101, 100, 109, 111, 110, 100, 32, 87, 65, 32, 57, 56, 48, 53,
50]
В этом примере используется ключ шифрования содержимого, представленный
следующим значением в кодировке base64url:
GawgguFyGrWKav7AX4VKUg
Jones и др. В русле стандартов [Страница 27]
RFC 7519 JSON Web Token (JWT) Май 2015
Окончательный результат для этого вложенного JWT (разрывы строк добавлены
только для отображения):
eyJhbGciOiJSU0ExXzUiLCJlbmMiOiJBMTI4Q0JDLUhTMjU2IiwiY3R5IjoiSldU
In0.
g_hEwksO1Ax8Qn7HoN-BVeBoa8FXe0kpyk_XdcSmxvcM5_P296JXXtoHISr_DD_M
qewaQSH4dZOQHoUgKLeFly-9RI11TG-_Ge1bZFazBPwKC5lJ6OLANLMd0QSL4fYE
b9ERe-epKYE3xb2jfY1AltHqBO-PM6j23Guj2yDKnFv6WO72tteVzm_2n17SBFvh
DuR9a2nHTE67pe0XGBUS_TK7ecA-iVq5COeVdJR4U4VZGGlxRGPLRHvolVLEHx6D
YyLpw30Ay9R6d68YCLi9FYTq3hIXPK_-dmPlOUlKvPr1GgJzRoeC9G5qCvdcHWsq
JGTO_z3Wfo5zsqwkxruxwA.
UmVkbW9uZCBXQSA5ODA1Mg.
VwHERHPvCNcHHpTjkoigx3_ExK0Qc71RMEParpatm0X_qpg-w8kozSjfNIPPXiTB
BLXR65CIPkFqz4l1Ae9w_uowKiwyi9acgVztAi-pSL8GQSXnaamh9kX1mdh3M_TT
-FZGQFQsFhu0Z72gJKGdfGE-OE7hS1zuBD5oEUfk0Dmb0VzWEzpxxiSSBbBAzP10
l56pPfAtrjEYw-7ygeMkwBl6Z_mLS6w6xUgKlvW6ULmkV-uLC4FUiyKECK4e3WZY
Kw1bpgIqGYsw2v_grHjszJZ-_I5uM-9RA8ycX9KqPRp9gc6pXmoU_-27ATs9XCvr
ZXUtK2902AUzqpeEUJYjWWxSNsS-r1TJ1I-FMJ4XyAiGrfmo9hQPcNBYxPz3GQb2
8Y5CLSQfNgKSGt0A4isp1hBUXBHAndgtcslt7ZoQJaKe_nNJgNliWtWpJ_ebuOpE
l8jdhehdccnRMIwAmU1n7SPkmhIl1HlSOpvcvDfhUN5wuqU955vOBvfkBOh5A11U
zBuo2WlgZ6hYi9-e3w29bR0C2-pp3jbqxEDw3iWaf2dc5b-LnR0FEYXvI_tYk5rd
_J9N0mg0tQ6RbpxNEMNoA9QWk5lgdPvbh9BaO195abQ.
AVO9iT5AV4CzvDJCdhSFlQ
Приложение B. Соотношение JWT и утверждений SAML
Security Assertion Markup Language (SAML) 2.0
[OASIS.saml-core-2.0-os] предоставляет стандарт создания токенов
безопасности с большей выразительностью и более широким выбором
средств безопасности, чем поддерживают JWT. Однако за эту гибкость и
выразительность приходится платить как размером, так и сложностью.
Использование в SAML XML [W3C.CR-xml11-20060816] и XML Digital Signature
(DSIG) [RFC3275] способствует увеличению размера утверждений SAML;
использование XML и особенно каноникализации XML
[W3C.REC-xml-c14n-20010315] способствует повышению их сложности.
JWT предназначены для предоставления простого формата токенов
безопасности, достаточно компактного для размещения в заголовках HTTP
и аргументах запроса в URI. Это достигается поддержкой гораздо более
простой модели токена, чем в SAML, и использованием синтаксиса
кодирования объектов JSON [RFC7159]. Формат также поддерживает защиту
токенов с помощью кодов аутентификации сообщений (MAC) и цифровых
подписей с использованием более компактного (и менее гибкого) формата,
чем XML DSIG.
Таким образом, хотя JWT могут выполнять некоторые из тех же функций,
что и утверждения SAML, JWT предназначены не для полной замены
утверждений SAML, а для использования в качестве формата токенов в
случаях, когда важны простота реализации или компактность.
Jones и др. В русле стандартов [Страница 28]
RFC 7519 JSON Web Token (JWT) Май 2015
Утверждения SAML всегда являются высказываниями некоторой сущности о
субъекте. JWT часто используются таким же образом: сущность, делающая
высказывания, представлена утверждением "iss" (издатель), а субъект —
утверждением "sub" (субъект). Однако, поскольку эти утверждения
необязательны, допускаются и другие способы использования формата JWT.
Приложение C. Соотношение JWT и Simple Web Tokens (SWT)
И JWT, и SWT [SWT] по своей сути позволяют передавать наборы утверждений
между приложениями. В SWT как имена утверждений, так и их значения
являются строками. В JWT имена утверждений являются строками, а значения
утверждений могут иметь любой тип JSON. Оба типа токенов обеспечивают
криптографическую защиту своего содержимого: SWT — с помощью HMAC
SHA-256, а JWT — с возможностью выбора алгоритмов, включая алгоритмы
подписи, MAC и шифрования.
Благодарности
Авторы отмечают, что на разработку JWT намеренно повлияли устройство и
простота SWT [SWT], а также идеи токенов JSON, которые Dick Hardt
обсуждал в сообществе OpenID.
Решения для подписания содержимого JSON ранее исследовались в Magic
Signatures [MagicSignatures], JSON Simple Sign [JSS] и Canvas
Applications [CanvasApp]; все они повлияли на этот документ.
Эта спецификация — результат работы рабочей группы OAuth, в которую
входят десятки активных и преданных делу участников. В частности,
следующие люди внесли идеи, отзывы и формулировки, повлиявшие на эту
спецификацию:
Dirk Balfanz, Richard Barnes, Brian Campbell, Alissa Cooper, Breno de
Medeiros, Stephen Farrell, Yaron Y. Goland, Dick Hardt, Joe
Hildebrand, Jeff Hodges, Edmund Jay, Warren Kumari, Ben Laurie, Barry
Leiba, Ted Lemon, James Manger, Prateek Mishra, Kathleen Moriarty,
Tony Nadalin, Axel Nennker, John Panzer, Emmanuel Raviart, David
Recordon, Eric Rescorla, Jim Schaad, Paul Tarjan, Hannes Tschofenig,
Sean Turner и Tom Yu.
Hannes Tschofenig и Derek Atkins были сопредседателями рабочей группы
OAuth, а Sean Turner, Stephen Farrell и Kathleen Moriarty занимали
должности директоров области безопасности во время создания этой
спецификации.
Jones и др. В русле стандартов [Страница 29]
RFC 7519 JSON Web Token (JWT) Май 2015
Адреса авторов
Michael B. Jones
Microsoft
EMail: mbj@microsoft.com
URI: http://self-issued.info/
John Bradley
Ping Identity
EMail: ve7jtb@ve7jtb.com
URI: http://www.thread-safe.com/
Nat Sakimura
Nomura Research Institute
EMail: n-sakimura@nri.co.jp
URI: http://nat.sakimura.org/
Jones и др. В русле стандартов [Страница 30]
Internet Engineering Task Force (IETF) M. Jones
Request for Comments: 7519 Microsoft
Category: Standards Track J. Bradley
ISSN: 2070-1721 Ping Identity
N. Sakimura
NRI
May 2015
JSON Web Token (JWT)
Abstract
JSON Web Token (JWT) is a compact, URL-safe means of representing
claims to be transferred between two parties. The claims in a JWT
are encoded as a JSON object that is used as the payload of a JSON
Web Signature (JWS) structure or as the plaintext of a JSON Web
Encryption (JWE) structure, enabling the claims to be digitally
signed or integrity protected with a Message Authentication Code
(MAC) and/or encrypted.
Status of This Memo
This is an Internet Standards Track document.
This document is a product of the Internet Engineering Task Force
(IETF). It represents the consensus of the IETF community. It has
received public review and has been approved for publication by the
Internet Engineering Steering Group (IESG). Further information on
Internet Standards is available in Section 2 of RFC 5741.
Information about the current status of this document, any errata,
and how to provide feedback on it may be obtained at
http://www.rfc-editor.org/info/rfc7519.
Jones, et al. Standards Track [Page 1]
RFC 7519 JSON Web Token (JWT) May 2015
Copyright Notice
Copyright (c) 2015 IETF Trust and the persons identified as the
document authors. All rights reserved.
This document is subject to BCP 78 and the IETF Trust's Legal
Provisions Relating to IETF Documents
(http://trustee.ietf.org/license-info) in effect on the date of
publication of this document. Please review these documents
carefully, as they describe your rights and restrictions with respect
to this document. Code Components extracted from this document must
include Simplified BSD License text as described in Section 4.e of
the Trust Legal Provisions and are provided without warranty as
described in the Simplified BSD License.
Jones, et al. Standards Track [Page 2]
RFC 7519 JSON Web Token (JWT) May 2015
Table of Contents
1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 4
1.1. Notational Conventions . . . . . . . . . . . . . . . . . 4
2. Terminology . . . . . . . . . . . . . . . . . . . . . . . . . 4
3. JSON Web Token (JWT) Overview . . . . . . . . . . . . . . . . 6
3.1. Example JWT . . . . . . . . . . . . . . . . . . . . . . . 7
4. JWT Claims . . . . . . . . . . . . . . . . . . . . . . . . . 8
4.1. Registered Claim Names . . . . . . . . . . . . . . . . . 9
4.1.1. "iss" (Issuer) Claim . . . . . . . . . . . . . . . . 9
4.1.2. "sub" (Subject) Claim . . . . . . . . . . . . . . . . 9
4.1.3. "aud" (Audience) Claim . . . . . . . . . . . . . . . 9
4.1.4. "exp" (Expiration Time) Claim . . . . . . . . . . . . 9
4.1.5. "nbf" (Not Before) Claim . . . . . . . . . . . . . . 10
4.1.6. "iat" (Issued At) Claim . . . . . . . . . . . . . . . 10
4.1.7. "jti" (JWT ID) Claim . . . . . . . . . . . . . . . . 10
4.2. Public Claim Names . . . . . . . . . . . . . . . . . . . 10
4.3. Private Claim Names . . . . . . . . . . . . . . . . . . . 10
5. JOSE Header . . . . . . . . . . . . . . . . . . . . . . . . . 11
5.1. "typ" (Type) Header Parameter . . . . . . . . . . . . . . 11
5.2. "cty" (Content Type) Header Parameter . . . . . . . . . . 11
5.3. Replicating Claims as Header Parameters . . . . . . . . . 12
6. Unsecured JWTs . . . . . . . . . . . . . . . . . . . . . . . 12
6.1. Example Unsecured JWT . . . . . . . . . . . . . . . . . . 12
7. Creating and Validating JWTs . . . . . . . . . . . . . . . . 13
7.1. Creating a JWT . . . . . . . . . . . . . . . . . . . . . 13
7.2. Validating a JWT . . . . . . . . . . . . . . . . . . . . 14
7.3. String Comparison Rules . . . . . . . . . . . . . . . . . 15
8. Implementation Requirements . . . . . . . . . . . . . . . . . 16
9. URI for Declaring that Content is a JWT . . . . . . . . . . . 17
10. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 17
10.1. JSON Web Token Claims Registry . . . . . . . . . . . . . 17
10.1.1. Registration Template . . . . . . . . . . . . . . . 18
10.1.2. Initial Registry Contents . . . . . . . . . . . . . 18
10.2. Sub-Namespace Registration of
urn:ietf:params:oauth:token-type:jwt . . . . . . . . . . 19
10.2.1. Registry Contents . . . . . . . . . . . . . . . . . 19
10.3. Media Type Registration . . . . . . . . . . . . . . . . 20
10.3.1. Registry Contents . . . . . . . . . . . . . . . . . 20
10.4. Header Parameter Names Registration . . . . . . . . . . 20
10.4.1. Registry Contents . . . . . . . . . . . . . . . . . 21
11. Security Considerations . . . . . . . . . . . . . . . . . . . 21
11.1. Trust Decisions . . . . . . . . . . . . . . . . . . . . 21
11.2. Signing and Encryption Order . . . . . . . . . . . . . . 21
12. Privacy Considerations . . . . . . . . . . . . . . . . . . . 22
13. References . . . . . . . . . . . . . . . . . . . . . . . . . 22
13.1. Normative References . . . . . . . . . . . . . . . . . . 22
13.2. Informative References . . . . . . . . . . . . . . . . . 23
Jones, et al. Standards Track [Page 3]
RFC 7519 JSON Web Token (JWT) May 2015
Appendix A. JWT Examples . . . . . . . . . . . . . . . . . . . . 26
A.1. Example Encrypted JWT . . . . . . . . . . . . . . . . . . 26
A.2. Example Nested JWT . . . . . . . . . . . . . . . . . . . 26
Appendix B. Relationship of JWTs to SAML Assertions . . . . . . 28
Appendix C. Relationship of JWTs to Simple Web Tokens (SWTs) . . 28
Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . . 28
Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 29
1. Introduction
JSON Web Token (JWT) is a compact claims representation format
intended for space constrained environments such as HTTP
Authorization headers and URI query parameters. JWTs encode claims
to be transmitted as a JSON [RFC7159] object that is used as the
payload of a JSON Web Signature (JWS) [JWS] structure or as the
plaintext of a JSON Web Encryption (JWE) [JWE] structure, enabling
the claims to be digitally signed or integrity protected with a
Message Authentication Code (MAC) and/or encrypted. JWTs are always
represented using the JWS Compact Serialization or the JWE Compact
Serialization.
The suggested pronunciation of JWT is the same as the English word
"jot".
1.1. Notational Conventions
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and
"OPTIONAL" in this document are to be interpreted as described in
"Key words for use in RFCs to Indicate Requirement Levels" [RFC2119].
The interpretation should only be applied when the terms appear in
all capital letters.
2. Terminology
The terms "JSON Web Signature (JWS)", "Base64url Encoding", "Header
Parameter", "JOSE Header", "JWS Compact Serialization", "JWS
Payload", "JWS Signature", and "Unsecured JWS" are defined by the JWS
specification [JWS].
The terms "JSON Web Encryption (JWE)", "Content Encryption Key
(CEK)", "JWE Compact Serialization", "JWE Encrypted Key", and "JWE
Initialization Vector" are defined by the JWE specification [JWE].
The terms "Ciphertext", "Digital Signature", "Message Authentication
Code (MAC)", and "Plaintext" are defined by the "Internet Security
Glossary, Version 2" [RFC4949].
Jones, et al. Standards Track [Page 4]
RFC 7519 JSON Web Token (JWT) May 2015
These terms are defined by this specification:
JSON Web Token (JWT)
A string representing a set of claims as a JSON object that is
encoded in a JWS or JWE, enabling the claims to be digitally
signed or MACed and/or encrypted.
JWT Claims Set
A JSON object that contains the claims conveyed by the JWT.
Claim
A piece of information asserted about a subject. A claim is
represented as a name/value pair consisting of a Claim Name and a
Claim Value.
Claim Name
The name portion of a claim representation. A Claim Name is
always a string.
Claim Value
The value portion of a claim representation. A Claim Value can be
any JSON value.
Nested JWT
A JWT in which nested signing and/or encryption are employed. In
Nested JWTs, a JWT is used as the payload or plaintext value of an
enclosing JWS or JWE structure, respectively.
Unsecured JWT
A JWT whose claims are not integrity protected or encrypted.
Collision-Resistant Name
A name in a namespace that enables names to be allocated in a
manner such that they are highly unlikely to collide with other
names. Examples of collision-resistant namespaces include: Domain
Names, Object Identifiers (OIDs) as defined in the ITU-T X.660 and
X.670 Recommendation series, and Universally Unique IDentifiers
(UUIDs) [RFC4122]. When using an administratively delegated
namespace, the definer of a name needs to take reasonable
precautions to ensure they are in control of the portion of the
namespace they use to define the name.
StringOrURI
A JSON string value, with the additional requirement that while
arbitrary string values MAY be used, any value containing a ":"
character MUST be a URI [RFC3986]. StringOrURI values are
compared as case-sensitive strings with no transformations or
canonicalizations applied.
Jones, et al. Standards Track [Page 5]
RFC 7519 JSON Web Token (JWT) May 2015
NumericDate
A JSON numeric value representing the number of seconds from
1970-01-01T00:00:00Z UTC until the specified UTC date/time,
ignoring leap seconds. This is equivalent to the IEEE Std 1003.1,
2013 Edition [POSIX.1] definition "Seconds Since the Epoch", in
which each day is accounted for by exactly 86400 seconds, other
than that non-integer values can be represented. See RFC 3339
[RFC3339] for details regarding date/times in general and UTC in
particular.
3. JSON Web Token (JWT) Overview
JWTs represent a set of claims as a JSON object that is encoded in a
JWS and/or JWE structure. This JSON object is the JWT Claims Set.
As per Section 4 of RFC 7159 [RFC7159], the JSON object consists of
zero or more name/value pairs (or members), where the names are
strings and the values are arbitrary JSON values. These members are
the claims represented by the JWT. This JSON object MAY contain
whitespace and/or line breaks before or after any JSON values or
structural characters, in accordance with Section 2 of RFC 7159
[RFC7159].
The member names within the JWT Claims Set are referred to as Claim
Names. The corresponding values are referred to as Claim Values.
The contents of the JOSE Header describe the cryptographic operations
applied to the JWT Claims Set. If the JOSE Header is for a JWS, the
JWT is represented as a JWS and the claims are digitally signed or
MACed, with the JWT Claims Set being the JWS Payload. If the JOSE
Header is for a JWE, the JWT is represented as a JWE and the claims
are encrypted, with the JWT Claims Set being the plaintext encrypted
by the JWE. A JWT may be enclosed in another JWE or JWS structure to
create a Nested JWT, enabling nested signing and encryption to be
performed.
A JWT is represented as a sequence of URL-safe parts separated by
period ('.') characters. Each part contains a base64url-encoded
value. The number of parts in the JWT is dependent upon the
representation of the resulting JWS using the JWS Compact
Serialization or JWE using the JWE Compact Serialization.
Jones, et al. Standards Track [Page 6]
RFC 7519 JSON Web Token (JWT) May 2015
3.1. Example JWT
The following example JOSE Header declares that the encoded object is
a JWT, and the JWT is a JWS that is MACed using the HMAC SHA-256
algorithm:
{"typ":"JWT",
"alg":"HS256"}
To remove potential ambiguities in the representation of the JSON
object above, the octet sequence for the actual UTF-8 representation
used in this example for the JOSE Header above is also included
below. (Note that ambiguities can arise due to differing platform
representations of line breaks (CRLF versus LF), differing spacing at
the beginning and ends of lines, whether the last line has a
terminating line break or not, and other causes. In the
representation used in this example, the first line has no leading or
trailing spaces, a CRLF line break (13, 10) occurs between the first
and second lines, the second line has one leading space (32) and no
trailing spaces, and the last line does not have a terminating line
break.) The octets representing the UTF-8 representation of the JOSE
Header in this example (using JSON array notation) are:
[123, 34, 116, 121, 112, 34, 58, 34, 74, 87, 84, 34, 44, 13, 10, 32,
34, 97, 108, 103, 34, 58, 34, 72, 83, 50, 53, 54, 34, 125]
Base64url encoding the octets of the UTF-8 representation of the JOSE
Header yields this encoded JOSE Header value:
eyJ0eXAiOiJKV1QiLA0KICJhbGciOiJIUzI1NiJ9
The following is an example of a JWT Claims Set:
{"iss":"joe",
"exp":1300819380,
"http://example.com/is_root":true}
The following octet sequence, which is the UTF-8 representation used
in this example for the JWT Claims Set above, is the JWS Payload:
[123, 34, 105, 115, 115, 34, 58, 34, 106, 111, 101, 34, 44, 13, 10,
32, 34, 101, 120, 112, 34, 58, 49, 51, 48, 48, 56, 49, 57, 51, 56,
48, 44, 13, 10, 32, 34, 104, 116, 116, 112, 58, 47, 47, 101, 120, 97,
109, 112, 108, 101, 46, 99, 111, 109, 47, 105, 115, 95, 114, 111,
111, 116, 34, 58, 116, 114, 117, 101, 125]
Jones, et al. Standards Track [Page 7]
RFC 7519 JSON Web Token (JWT) May 2015
Base64url encoding the JWS Payload yields this encoded JWS Payload
(with line breaks for display purposes only):
eyJpc3MiOiJqb2UiLA0KICJleHAiOjEzMDA4MTkzODAsDQogImh0dHA6Ly
9leGFtcGxlLmNvbS9pc19yb290Ijp0cnVlfQ
Computing the MAC of the encoded JOSE Header and encoded JWS Payload
with the HMAC SHA-256 algorithm and base64url encoding the HMAC value
in the manner specified in [JWS] yields this encoded JWS Signature:
dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk
Concatenating these encoded parts in this order with period ('.')
characters between the parts yields this complete JWT (with line
breaks for display purposes only):
eyJ0eXAiOiJKV1QiLA0KICJhbGciOiJIUzI1NiJ9
.
eyJpc3MiOiJqb2UiLA0KICJleHAiOjEzMDA4MTkzODAsDQogImh0dHA6Ly9leGFt
cGxlLmNvbS9pc19yb290Ijp0cnVlfQ
.
dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk
This computation is illustrated in more detail in Appendix A.1 of
[JWS]. See Appendix A.1 for an example of an encrypted JWT.
4. JWT Claims
The JWT Claims Set represents a JSON object whose members are the
claims conveyed by the JWT. The Claim Names within a JWT Claims Set
MUST be unique; JWT parsers MUST either reject JWTs with duplicate
Claim Names or use a JSON parser that returns only the lexically last
duplicate member name, as specified in Section 15.12 ("The JSON
Object") of ECMAScript 5.1 [ECMAScript].
The set of claims that a JWT must contain to be considered valid is
context dependent and is outside the scope of this specification.
Specific applications of JWTs will require implementations to
understand and process some claims in particular ways. However, in
the absence of such requirements, all claims that are not understood
by implementations MUST be ignored.
There are three classes of JWT Claim Names: Registered Claim Names,
Public Claim Names, and Private Claim Names.
Jones, et al. Standards Track [Page 8]
RFC 7519 JSON Web Token (JWT) May 2015
4.1. Registered Claim Names
The following Claim Names are registered in the IANA "JSON Web Token
Claims" registry established by Section 10.1. None of the claims
defined below are intended to be mandatory to use or implement in all
cases, but rather they provide a starting point for a set of useful,
interoperable claims. Applications using JWTs should define which
specific claims they use and when they are required or optional. All
the names are short because a core goal of JWTs is for the
representation to be compact.
4.1.1. "iss" (Issuer) Claim
The "iss" (issuer) claim identifies the principal that issued the
JWT. The processing of this claim is generally application specific.
The "iss" value is a case-sensitive string containing a StringOrURI
value. Use of this claim is OPTIONAL.
4.1.2. "sub" (Subject) Claim
The "sub" (subject) claim identifies the principal that is the
subject of the JWT. The claims in a JWT are normally statements
about the subject. The subject value MUST either be scoped to be
locally unique in the context of the issuer or be globally unique.
The processing of this claim is generally application specific. The
"sub" value is a case-sensitive string containing a StringOrURI
value. Use of this claim is OPTIONAL.
4.1.3. "aud" (Audience) Claim
The "aud" (audience) claim identifies the recipients that the JWT is
intended for. Each principal intended to process the JWT MUST
identify itself with a value in the audience claim. If the principal
processing the claim does not identify itself with a value in the
"aud" claim when this claim is present, then the JWT MUST be
rejected. In the general case, the "aud" value is an array of case-
sensitive strings, each containing a StringOrURI value. In the
special case when the JWT has one audience, the "aud" value MAY be a
single case-sensitive string containing a StringOrURI value. The
interpretation of audience values is generally application specific.
Use of this claim is OPTIONAL.
4.1.4. "exp" (Expiration Time) Claim
The "exp" (expiration time) claim identifies the expiration time on
or after which the JWT MUST NOT be accepted for processing. The
processing of the "exp" claim requires that the current date/time
MUST be before the expiration date/time listed in the "exp" claim.
Jones, et al. Standards Track [Page 9]
RFC 7519 JSON Web Token (JWT) May 2015
Implementers MAY provide for some small leeway, usually no more than
a few minutes, to account for clock skew. Its value MUST be a number
containing a NumericDate value. Use of this claim is OPTIONAL.
4.1.5. "nbf" (Not Before) Claim
The "nbf" (not before) claim identifies the time before which the JWT
MUST NOT be accepted for processing. The processing of the "nbf"
claim requires that the current date/time MUST be after or equal to
the not-before date/time listed in the "nbf" claim. Implementers MAY
provide for some small leeway, usually no more than a few minutes, to
account for clock skew. Its value MUST be a number containing a
NumericDate value. Use of this claim is OPTIONAL.
4.1.6. "iat" (Issued At) Claim
The "iat" (issued at) claim identifies the time at which the JWT was
issued. This claim can be used to determine the age of the JWT. Its
value MUST be a number containing a NumericDate value. Use of this
claim is OPTIONAL.
4.1.7. "jti" (JWT ID) Claim
The "jti" (JWT ID) claim provides a unique identifier for the JWT.
The identifier value MUST be assigned in a manner that ensures that
there is a negligible probability that the same value will be
accidentally assigned to a different data object; if the application
uses multiple issuers, collisions MUST be prevented among values
produced by different issuers as well. The "jti" claim can be used
to prevent the JWT from being replayed. The "jti" value is a case-
sensitive string. Use of this claim is OPTIONAL.
4.2. Public Claim Names
Claim Names can be defined at will by those using JWTs. However, in
order to prevent collisions, any new Claim Name should either be
registered in the IANA "JSON Web Token Claims" registry established
by Section 10.1 or be a Public Name: a value that contains a
Collision-Resistant Name. In each case, the definer of the name or
value needs to take reasonable precautions to make sure they are in
control of the part of the namespace they use to define the Claim
Name.
4.3. Private Claim Names
A producer and consumer of a JWT MAY agree to use Claim Names that
are Private Names: names that are not Registered Claim Names
(Section 4.1) or Public Claim Names (Section 4.2). Unlike Public
Jones, et al. Standards Track [Page 10]
RFC 7519 JSON Web Token (JWT) May 2015
Claim Names, Private Claim Names are subject to collision and should
be used with caution.
5. JOSE Header
For a JWT object, the members of the JSON object represented by the
JOSE Header describe the cryptographic operations applied to the JWT
and optionally, additional properties of the JWT. Depending upon
whether the JWT is a JWS or JWE, the corresponding rules for the JOSE
Header values apply.
This specification further specifies the use of the following Header
Parameters in both the cases where the JWT is a JWS and where it is a
JWE.
5.1. "typ" (Type) Header Parameter
The "typ" (type) Header Parameter defined by [JWS] and [JWE] is used
by JWT applications to declare the media type [IANA.MediaTypes] of
this complete JWT. This is intended for use by the JWT application
when values that are not JWTs could also be present in an application
data structure that can contain a JWT object; the application can use
this value to disambiguate among the different kinds of objects that
might be present. It will typically not be used by applications when
it is already known that the object is a JWT. This parameter is
ignored by JWT implementations; any processing of this parameter is
performed by the JWT application. If present, it is RECOMMENDED that
its value be "JWT" to indicate that this object is a JWT. While
media type names are not case sensitive, it is RECOMMENDED that "JWT"
always be spelled using uppercase characters for compatibility with
legacy implementations. Use of this Header Parameter is OPTIONAL.
5.2. "cty" (Content Type) Header Parameter
The "cty" (content type) Header Parameter defined by [JWS] and [JWE]
is used by this specification to convey structural information about
the JWT.
In the normal case in which nested signing or encryption operations
are not employed, the use of this Header Parameter is NOT
RECOMMENDED. In the case that nested signing or encryption is
employed, this Header Parameter MUST be present; in this case, the
value MUST be "JWT", to indicate that a Nested JWT is carried in this
JWT. While media type names are not case sensitive, it is
RECOMMENDED that "JWT" always be spelled using uppercase characters
for compatibility with legacy implementations. See Appendix A.2 for
an example of a Nested JWT.
Jones, et al. Standards Track [Page 11]
RFC 7519 JSON Web Token (JWT) May 2015
5.3. Replicating Claims as Header Parameters
In some applications using encrypted JWTs, it is useful to have an
unencrypted representation of some claims. This might be used, for
instance, in application processing rules to determine whether and
how to process the JWT before it is decrypted.
This specification allows claims present in the JWT Claims Set to be
replicated as Header Parameters in a JWT that is a JWE, as needed by
the application. If such replicated claims are present, the
application receiving them SHOULD verify that their values are
identical, unless the application defines other specific processing
rules for these claims. It is the responsibility of the application
to ensure that only claims that are safe to be transmitted in an
unencrypted manner are replicated as Header Parameter values in the
JWT.
Section 10.4.1 of this specification registers the "iss" (issuer),
"sub" (subject), and "aud" (audience) Header Parameter names for the
purpose of providing unencrypted replicas of these claims in
encrypted JWTs for applications that need them. Other specifications
MAY similarly register other names that are registered Claim Names as
Header Parameter names, as needed.
6. Unsecured JWTs
To support use cases in which the JWT content is secured by a means
other than a signature and/or encryption contained within the JWT
(such as a signature on a data structure containing the JWT), JWTs
MAY also be created without a signature or encryption. An Unsecured
JWT is a JWS using the "alg" Header Parameter value "none" and with
the empty string for its JWS Signature value, as defined in the JWA
specification [JWA]; it is an Unsecured JWS with the JWT Claims Set
as its JWS Payload.
6.1. Example Unsecured JWT
The following example JOSE Header declares that the encoded object is
an Unsecured JWT:
{"alg":"none"}
Base64url encoding the octets of the UTF-8 representation of the JOSE
Header yields this encoded JOSE Header value:
eyJhbGciOiJub25lIn0
Jones, et al. Standards Track [Page 12]
RFC 7519 JSON Web Token (JWT) May 2015
The following is an example of a JWT Claims Set:
{"iss":"joe",
"exp":1300819380,
"http://example.com/is_root":true}
Base64url encoding the octets of the UTF-8 representation of the JWT
Claims Set yields this encoded JWS Payload (with line breaks for
display purposes only):
eyJpc3MiOiJqb2UiLA0KICJleHAiOjEzMDA4MTkzODAsDQogImh0dHA6Ly9leGFt
cGxlLmNvbS9pc19yb290Ijp0cnVlfQ
The encoded JWS Signature is the empty string.
Concatenating these encoded parts in this order with period ('.')
characters between the parts yields this complete JWT (with line
breaks for display purposes only):
eyJhbGciOiJub25lIn0
.
eyJpc3MiOiJqb2UiLA0KICJleHAiOjEzMDA4MTkzODAsDQogImh0dHA6Ly9leGFt
cGxlLmNvbS9pc19yb290Ijp0cnVlfQ
.
7. Creating and Validating JWTs
7.1. Creating a JWT
To create a JWT, the following steps are performed. The order of the
steps is not significant in cases where there are no dependencies
between the inputs and outputs of the steps.
1. Create a JWT Claims Set containing the desired claims. Note that
whitespace is explicitly allowed in the representation and no
canonicalization need be performed before encoding.
2. Let the Message be the octets of the UTF-8 representation of the
JWT Claims Set.
3. Create a JOSE Header containing the desired set of Header
Parameters. The JWT MUST conform to either the [JWS] or [JWE]
specification. Note that whitespace is explicitly allowed in the
representation and no canonicalization need be performed before
encoding.
Jones, et al. Standards Track [Page 13]
RFC 7519 JSON Web Token (JWT) May 2015
4. Depending upon whether the JWT is a JWS or JWE, there are two
cases:
* If the JWT is a JWS, create a JWS using the Message as the JWS
Payload; all steps specified in [JWS] for creating a JWS MUST
be followed.
* Else, if the JWT is a JWE, create a JWE using the Message as
the plaintext for the JWE; all steps specified in [JWE] for
creating a JWE MUST be followed.
5. If a nested signing or encryption operation will be performed,
let the Message be the JWS or JWE, and return to Step 3, using a
"cty" (content type) value of "JWT" in the new JOSE Header
created in that step.
6. Otherwise, let the resulting JWT be the JWS or JWE.
7.2. Validating a JWT
When validating a JWT, the following steps are performed. The order
of the steps is not significant in cases where there are no
dependencies between the inputs and outputs of the steps. If any of
the listed steps fail, then the JWT MUST be rejected -- that is,
treated by the application as an invalid input.
1. Verify that the JWT contains at least one period ('.')
character.
2. Let the Encoded JOSE Header be the portion of the JWT before the
first period ('.') character.
3. Base64url decode the Encoded JOSE Header following the
restriction that no line breaks, whitespace, or other additional
characters have been used.
4. Verify that the resulting octet sequence is a UTF-8-encoded
representation of a completely valid JSON object conforming to
RFC 7159 [RFC7159]; let the JOSE Header be this JSON object.
5. Verify that the resulting JOSE Header includes only parameters
and values whose syntax and semantics are both understood and
supported or that are specified as being ignored when not
understood.
6. Determine whether the JWT is a JWS or a JWE using any of the
methods described in Section 9 of [JWE].
Jones, et al. Standards Track [Page 14]
RFC 7519 JSON Web Token (JWT) May 2015
7. Depending upon whether the JWT is a JWS or JWE, there are two
cases:
* If the JWT is a JWS, follow the steps specified in [JWS] for
validating a JWS. Let the Message be the result of base64url
decoding the JWS Payload.
* Else, if the JWT is a JWE, follow the steps specified in
[JWE] for validating a JWE. Let the Message be the resulting
plaintext.
8. If the JOSE Header contains a "cty" (content type) value of
"JWT", then the Message is a JWT that was the subject of nested
signing or encryption operations. In this case, return to Step
1, using the Message as the JWT.
9. Otherwise, base64url decode the Message following the
restriction that no line breaks, whitespace, or other additional
characters have been used.
10. Verify that the resulting octet sequence is a UTF-8-encoded
representation of a completely valid JSON object conforming to
RFC 7159 [RFC7159]; let the JWT Claims Set be this JSON object.
Finally, note that it is an application decision which algorithms may
be used in a given context. Even if a JWT can be successfully
validated, unless the algorithms used in the JWT are acceptable to
the application, it SHOULD reject the JWT.
7.3. String Comparison Rules
Processing a JWT inevitably requires comparing known strings to
members and values in JSON objects. For example, in checking what
the algorithm is, the Unicode [UNICODE] string encoding "alg" will be
checked against the member names in the JOSE Header to see if there
is a matching Header Parameter name.
The JSON rules for doing member name comparison are described in
Section 8.3 of RFC 7159 [RFC7159]. Since the only string comparison
operations that are performed are equality and inequality, the same
rules can be used for comparing both member names and member values
against known strings.
These comparison rules MUST be used for all JSON string comparisons
except in cases where the definition of the member explicitly calls
out that a different comparison rule is to be used for that member
value. In this specification, only the "typ" and "cty" member values
do not use these comparison rules.
Jones, et al. Standards Track [Page 15]
RFC 7519 JSON Web Token (JWT) May 2015
Some applications may include case-insensitive information in a case-
sensitive value, such as including a DNS name as part of the "iss"
(issuer) claim value. In those cases, the application may need to
define a convention for the canonical case to use for representing
the case-insensitive portions, such as lowercasing them, if more than
one party might need to produce the same value so that they can be
compared. (However, if all other parties consume whatever value the
producing party emitted verbatim without attempting to compare it to
an independently produced value, then the case used by the producer
will not matter.)
8. Implementation Requirements
This section defines which algorithms and features of this
specification are mandatory to implement. Applications using this
specification can impose additional requirements upon implementations
that they use. For instance, one application might require support
for encrypted JWTs and Nested JWTs, while another might require
support for signing JWTs with the Elliptic Curve Digital Signature
Algorithm (ECDSA) using the P-256 curve and the SHA-256 hash
algorithm ("ES256").
Of the signature and MAC algorithms specified in JSON Web Algorithms
[JWA], only HMAC SHA-256 ("HS256") and "none" MUST be implemented by
conforming JWT implementations. It is RECOMMENDED that
implementations also support RSASSA-PKCS1-v1_5 with the SHA-256 hash
algorithm ("RS256") and ECDSA using the P-256 curve and the SHA-256
hash algorithm ("ES256"). Support for other algorithms and key sizes
is OPTIONAL.
Support for encrypted JWTs is OPTIONAL. If an implementation
provides encryption capabilities, of the encryption algorithms
specified in [JWA], only RSAES-PKCS1-v1_5 with 2048-bit keys
("RSA1_5"), AES Key Wrap with 128- and 256-bit keys ("A128KW" and
"A256KW"), and the composite authenticated encryption algorithm using
AES-CBC and HMAC SHA-2 ("A128CBC-HS256" and "A256CBC-HS512") MUST be
implemented by conforming implementations. It is RECOMMENDED that
implementations also support using Elliptic Curve Diffie-Hellman
Ephemeral Static (ECDH-ES) to agree upon a key used to wrap the
Content Encryption Key ("ECDH-ES+A128KW" and "ECDH-ES+A256KW") and
AES in Galois/Counter Mode (GCM) with 128- and 256-bit keys
("A128GCM" and "A256GCM"). Support for other algorithms and key
sizes is OPTIONAL.
Support for Nested JWTs is OPTIONAL.
Jones, et al. Standards Track [Page 16]
RFC 7519 JSON Web Token (JWT) May 2015
9. URI for Declaring that Content is a JWT
This specification registers the URN
"urn:ietf:params:oauth:token-type:jwt" for use by applications that
declare content types using URIs (rather than, for instance, media
types) to indicate that the content referred to is a JWT.
10. IANA Considerations
10.1. JSON Web Token Claims Registry
This section establishes the IANA "JSON Web Token Claims" registry
for JWT Claim Names. The registry records the Claim Name and a
reference to the specification that defines it. This section
registers the Claim Names defined in Section 4.1.
Values are registered on a Specification Required [RFC5226] basis
after a three-week review period on the jwt-reg-review@ietf.org
mailing list, on the advice of one or more Designated Experts.
However, to allow for the allocation of values prior to publication,
the Designated Experts may approve registration once they are
satisfied that such a specification will be published.
Registration requests sent to the mailing list for review should use
an appropriate subject (e.g., "Request to register claim: example").
Within the review period, the Designated Experts will either approve
or deny the registration request, communicating this decision to the
review list and IANA. Denials should include an explanation and, if
applicable, suggestions as to how to make the request successful.
Registration requests that are undetermined for a period longer than
21 days can be brought to the IESG's attention (using the
iesg@ietf.org mailing list) for resolution.
Criteria that should be applied by the Designated Experts includes
determining whether the proposed registration duplicates existing
functionality, whether it is likely to be of general applicability or
whether it is useful only for a single application, and whether the
registration description is clear.
IANA must only accept registry updates from the Designated Experts
and should direct all requests for registration to the review mailing
list.
It is suggested that multiple Designated Experts be appointed who are
able to represent the perspectives of different applications using
this specification, in order to enable broadly informed review of
registration decisions. In cases where a registration decision could
Jones, et al. Standards Track [Page 17]
RFC 7519 JSON Web Token (JWT) May 2015
be perceived as creating a conflict of interest for a particular
Expert, that Expert should defer to the judgment of the other
Experts.
10.1.1. Registration Template
Claim Name:
The name requested (e.g., "iss"). Because a core goal of this
specification is for the resulting representations to be compact,
it is RECOMMENDED that the name be short -- that is, not to exceed
8 characters without a compelling reason to do so. This name is
case sensitive. Names may not match other registered names in a
case-insensitive manner unless the Designated Experts state that
there is a compelling reason to allow an exception.
Claim Description:
Brief description of the claim (e.g., "Issuer").
Change Controller:
For Standards Track RFCs, list the "IESG". For others, give the
name of the responsible party. Other details (e.g., postal
address, email address, home page URI) may also be included.
Specification Document(s):
Reference to the document or documents that specify the parameter,
preferably including URIs that can be used to retrieve copies of
the documents. An indication of the relevant sections may also be
included but is not required.
10.1.2. Initial Registry Contents
o Claim Name: "iss"
o Claim Description: Issuer
o Change Controller: IESG
o Specification Document(s): Section 4.1.1 of RFC 7519
o Claim Name: "sub"
o Claim Description: Subject
o Change Controller: IESG
o Specification Document(s): Section 4.1.2 of RFC 7519
o Claim Name: "aud"
o Claim Description: Audience
o Change Controller: IESG
o Specification Document(s): Section 4.1.3 of RFC 7519
Jones, et al. Standards Track [Page 18]
RFC 7519 JSON Web Token (JWT) May 2015
o Claim Name: "exp"
o Claim Description: Expiration Time
o Change Controller: IESG
o Specification Document(s): Section 4.1.4 of RFC 7519
o Claim Name: "nbf"
o Claim Description: Not Before
o Change Controller: IESG
o Specification Document(s): Section 4.1.5 of RFC 7519
o Claim Name: "iat"
o Claim Description: Issued At
o Change Controller: IESG
o Specification Document(s): Section 4.1.6 of RFC 7519
o Claim Name: "jti"
o Claim Description: JWT ID
o Change Controller: IESG
o Specification Document(s): Section 4.1.7 of RFC 7519
10.2. Sub-Namespace Registration of
urn:ietf:params:oauth:token-type:jwt
10.2.1. Registry Contents
This section registers the value "token-type:jwt" in the IANA "OAuth
URI" registry established by "An IETF URN Sub-Namespace for OAuth"
[RFC6755], which can be used to indicate that the content is a JWT.
o URN: urn:ietf:params:oauth:token-type:jwt
o Common Name: JSON Web Token (JWT) Token Type
o Change Controller: IESG
o Specification Document(s): RFC 7519
Jones, et al. Standards Track [Page 19]
RFC 7519 JSON Web Token (JWT) May 2015
10.3. Media Type Registration
10.3.1. Registry Contents
This section registers the "application/jwt" media type [RFC2046] in
the "Media Types" registry [IANA.MediaTypes] in the manner described
in RFC 6838 [RFC6838], which can be used to indicate that the content
is a JWT.
o Type name: application
o Subtype name: jwt
o Required parameters: n/a
o Optional parameters: n/a
o Encoding considerations: 8bit; JWT values are encoded as a series
of base64url-encoded values (some of which may be the empty
string) separated by period ('.') characters.
o Security considerations: See the Security Considerations section
of RFC 7519
o Interoperability considerations: n/a
o Published specification: RFC 7519
o Applications that use this media type: OpenID Connect, Mozilla
Persona, Salesforce, Google, Android, Windows Azure, Amazon Web
Services, and numerous others
o Fragment identifier considerations: n/a
o Additional information:
Magic number(s): n/a
File extension(s): n/a
Macintosh file type code(s): n/a
o Person & email address to contact for further information:
Michael B. Jones, mbj@microsoft.com
o Intended usage: COMMON
o Restrictions on usage: none
o Author: Michael B. Jones, mbj@microsoft.com
o Change controller: IESG
o Provisional registration? No
10.4. Header Parameter Names Registration
This section registers specific Claim Names defined in Section 4.1 in
the IANA "JSON Web Signature and Encryption Header Parameters"
registry established by [JWS] for use by claims replicated as Header
Parameters in JWEs, per Section 5.3.
Jones, et al. Standards Track [Page 20]
RFC 7519 JSON Web Token (JWT) May 2015
10.4.1. Registry Contents
o Header Parameter Name: "iss"
o Header Parameter Description: Issuer
o Header Parameter Usage Location(s): JWE
o Change Controller: IESG
o Specification Document(s): Section 4.1.1 of RFC 7519
o Header Parameter Name: "sub"
o Header Parameter Description: Subject
o Header Parameter Usage Location(s): JWE
o Change Controller: IESG
o Specification Document(s): Section 4.1.2 of RFC 7519
o Header Parameter Name: "aud"
o Header Parameter Description: Audience
o Header Parameter Usage Location(s): JWE
o Change Controller: IESG
o Specification Document(s): Section 4.1.3 of RFC 7519
11. Security Considerations
All of the security issues that are pertinent to any cryptographic
application must be addressed by JWT/JWS/JWE/JWK agents. Among these
issues are protecting the user's asymmetric private and symmetric
secret keys and employing countermeasures to various attacks.
All the security considerations in the JWS specification also apply
to JWT, as do the JWE security considerations when encryption is
employed. In particular, Sections 10.12 ("JSON Security
Considerations") and 10.13 ("Unicode Comparison Security
Considerations") of [JWS] apply equally to the JWT Claims Set in the
same manner that they do to the JOSE Header.
11.1. Trust Decisions
The contents of a JWT cannot be relied upon in a trust decision
unless its contents have been cryptographically secured and bound to
the context necessary for the trust decision. In particular, the
key(s) used to sign and/or encrypt the JWT will typically need to
verifiably be under the control of the party identified as the issuer
of the JWT.
11.2. Signing and Encryption Order
While syntactically the signing and encryption operations for Nested
JWTs may be applied in any order, if both signing and encryption are
necessary, normally producers should sign the message and then
Jones, et al. Standards Track [Page 21]
RFC 7519 JSON Web Token (JWT) May 2015
encrypt the result (thus encrypting the signature). This prevents
attacks in which the signature is stripped, leaving just an encrypted
message, as well as providing privacy for the signer. Furthermore,
signatures over encrypted text are not considered valid in many
jurisdictions.
Note that potential concerns about security issues related to the
order of signing and encryption operations are already addressed by
the underlying JWS and JWE specifications; in particular, because JWE
only supports the use of authenticated encryption algorithms,
cryptographic concerns about the potential need to sign after
encryption that apply in many contexts do not apply to this
specification.
12. Privacy Considerations
A JWT may contain privacy-sensitive information. When this is the
case, measures MUST be taken to prevent disclosure of this
information to unintended parties. One way to achieve this is to use
an encrypted JWT and authenticate the recipient. Another way is to
ensure that JWTs containing unencrypted privacy-sensitive information
are only transmitted using protocols utilizing encryption that
support endpoint authentication, such as Transport Layer Security
(TLS). Omitting privacy-sensitive information from a JWT is the
simplest way of minimizing privacy issues.
13. References
13.1. Normative References
[ECMAScript]
Ecma International, "ECMAScript Language Specification,
5.1 Edition", ECMA Standard 262, June 2011,
<http://www.ecma-international.org/ecma-262/5.1/
ECMA-262.pdf>.
[IANA.MediaTypes]
IANA, "Media Types",
<http://www.iana.org/assignments/media-types>.
[JWA] Jones, M., "JSON Web Algorithms (JWA)", RFC 7518,
DOI 10.17487/RFC7518, May 2015,
<http://www.rfc-editor.org/info/rfc7518>.
[JWE] Jones, M. and J. Hildebrand, "JSON Web Encryption (JWE)",
RFC 7516, DOI 10.17487/RFC7516, May 2015,
<http://www.rfc-editor.org/info/rfc7516>.
Jones, et al. Standards Track [Page 22]
RFC 7519 JSON Web Token (JWT) May 2015
[JWS] Jones, M., Bradley, J., and N. Sakimura, "JSON Web
Signature (JWS)", RFC 7515, DOI 10.17487/RFC, May 2015,
<http://www.rfc-editor.org/info/rfc7515>.
[RFC20] Cerf, V., "ASCII format for Network Interchange", STD 80,
RFC 20, DOI 10.17487/RFC0020, October 1969,
<http://www.rfc-editor.org/info/rfc20>.
[RFC2046] Freed, N. and N. Borenstein, "Multipurpose Internet Mail
Extensions (MIME) Part Two: Media Types", RFC 2046,
DOI 10.17487/RFC2046, November 1996,
<http://www.rfc-editor.org/info/rfc2046>.
[RFC2119] Bradner, S., "Key words for use in RFCs to Indicate
Requirement Levels", BCP 14, RFC 2119,
DOI 10.17487/RFC2119, March 1997,
<http://www.rfc-editor.org/info/rfc2119>.
[RFC3986] Berners-Lee, T., Fielding, R., and L. Masinter, "Uniform
Resource Identifier (URI): Generic Syntax", STD 66,
RFC 3986, DOI 10.17487/RFC3986, January 2005,
<http://www.rfc-editor.org/info/rfc3986>.
[RFC4949] Shirey, R., "Internet Security Glossary, Version 2",
FYI 36, RFC 4949, DOI 10.17487/RFC4949, August 2007,
<http://www.rfc-editor.org/info/rfc4949>.
[RFC7159] Bray, T., Ed., "The JavaScript Object Notation (JSON) Data
Interchange Format", RFC 7159, DOI 10.17487/RFC7159, March
2014, <http://www.rfc-editor.org/info/rfc7159>.
[UNICODE] The Unicode Consortium, "The Unicode Standard",
<http://www.unicode.org/versions/latest/>.
13.2. Informative References
[CanvasApp]
Facebook, "Canvas Applications", 2010,
<http://developers.facebook.com/docs/authentication/
canvas>.
[JSS] Bradley, J. and N. Sakimura (editor), "JSON Simple Sign",
September 2010, <http://jsonenc.info/jss/1.0/>.
Jones, et al. Standards Track [Page 23]
RFC 7519 JSON Web Token (JWT) May 2015
[MagicSignatures]
Panzer, J., Ed., Laurie, B., and D. Balfanz, "Magic
Signatures", January 2011,
<http://salmon-protocol.googlecode.com/svn/
trunk/draft-panzer-magicsig-01.html>.
[OASIS.saml-core-2.0-os]
Cantor, S., Kemp, J., Philpott, R., and E. Maler,
"Assertions and Protocols for the OASIS Security Assertion
Markup Language (SAML) V2.0", OASIS Standard
saml-core-2.0-os, March 2005,
<http://docs.oasis-open.org/security/saml/v2.0/
saml-core-2.0-os.pdf>.
[POSIX.1] IEEE, "The Open Group Base Specifications Issue 7", IEEE
Std 1003.1, 2013 Edition, 2013,
<http://pubs.opengroup.org/onlinepubs/9699919799/
basedefs/V1_chap04.html#tag_04_15>.
[RFC3275] Eastlake 3rd, D., Reagle, J., and D. Solo, "(Extensible
Markup Language) XML-Signature Syntax and Processing",
RFC 3275, DOI 10.17487/RFC3275, March 2002,
<http://www.rfc-editor.org/info/rfc3275>.
[RFC3339] Klyne, G. and C. Newman, "Date and Time on the Internet:
Timestamps", RFC 3339, DOI 10.17487/RFC3339, July 2002,
<http://www.rfc-editor.org/info/rfc3339>.
[RFC4122] Leach, P., Mealling, M., and R. Salz, "A Universally
Unique IDentifier (UUID) URN Namespace", RFC 4122,
DOI 10.17487/RFC4122, July 2005,
<http://www.rfc-editor.org/info/rfc4122>.
[RFC5226] Narten, T. and H. Alvestrand, "Guidelines for Writing an
IANA Considerations Section in RFCs", BCP 26, RFC 5226,
DOI 10.17487/RFC5226, May 2008,
<http://www.rfc-editor.org/info/rfc5226>.
[RFC6755] Campbell, B. and H. Tschofenig, "An IETF URN Sub-Namespace
for OAuth", RFC 6755, DOI 10.17487/RFC6755, October 2012,
<http://www.rfc-editor.org/info/rfc6755>.
[RFC6838] Freed, N., Klensin, J., and T. Hansen, "Media Type
Specifications and Registration Procedures", BCP 13,
RFC 6838, DOI 10.17487/RFC6838, January 2013,
<http://www.rfc-editor.org/info/rfc6838>.
Jones, et al. Standards Track [Page 24]
RFC 7519 JSON Web Token (JWT) May 2015
[SWT] Hardt, D. and Y. Goland, "Simple Web Token (SWT)", Version
0.9.5.1, November 2009, <http://msdn.microsoft.com/en-us/
library/windowsazure/hh781551.aspx>.
[W3C.CR-xml11-20060816]
Cowan, J., "Extensible Markup Language (XML) 1.1 (Second
Edition)", World Wide Web Consortium Recommendation
REC-xml11-20060816, August 2006,
<http://www.w3.org/TR/2006/REC-xml11-20060816>.
[W3C.REC-xml-c14n-20010315]
Boyer, J., "Canonical XML Version 1.0", World Wide Web
Consortium Recommendation REC-xml-c14n-20010315, March
2001, <http://www.w3.org/TR/2001/REC-xml-c14n-20010315>.
Jones, et al. Standards Track [Page 25]
RFC 7519 JSON Web Token (JWT) May 2015
Appendix A. JWT Examples
This section contains examples of JWTs. For other example JWTs, see
Section 6.1 of this document and Appendices A.1 - A.3 of [JWS].
A.1. Example Encrypted JWT
This example encrypts the same claims as used in Section 3.1 to the
recipient using RSAES-PKCS1-v1_5 and AES_128_CBC_HMAC_SHA_256.
The following example JOSE Header declares that:
o The Content Encryption Key is encrypted to the recipient using the
RSAES-PKCS1-v1_5 algorithm to produce the JWE Encrypted Key.
o Authenticated encryption is performed on the plaintext using the
AES_128_CBC_HMAC_SHA_256 algorithm to produce the JWE Ciphertext
and the JWE Authentication Tag.
{"alg":"RSA1_5","enc":"A128CBC-HS256"}
Other than using the octets of the UTF-8 representation of the JWT
Claims Set from Section 3.1 as the plaintext value, the computation
of this JWT is identical to the computation of the JWE in
Appendix A.2 of [JWE], including the keys used.
The final result in this example (with line breaks for display
purposes only) is:
eyJhbGciOiJSU0ExXzUiLCJlbmMiOiJBMTI4Q0JDLUhTMjU2In0.
QR1Owv2ug2WyPBnbQrRARTeEk9kDO2w8qDcjiHnSJflSdv1iNqhWXaKH4MqAkQtM
oNfABIPJaZm0HaA415sv3aeuBWnD8J-Ui7Ah6cWafs3ZwwFKDFUUsWHSK-IPKxLG
TkND09XyjORj_CHAgOPJ-Sd8ONQRnJvWn_hXV1BNMHzUjPyYwEsRhDhzjAD26ima
sOTsgruobpYGoQcXUwFDn7moXPRfDE8-NoQX7N7ZYMmpUDkR-Cx9obNGwJQ3nM52
YCitxoQVPzjbl7WBuB7AohdBoZOdZ24WlN1lVIeh8v1K4krB8xgKvRU8kgFrEn_a
1rZgN5TiysnmzTROF869lQ.
AxY8DCtDaGlsbGljb3RoZQ.
MKOle7UQrG6nSxTLX6Mqwt0orbHvAKeWnDYvpIAeZ72deHxz3roJDXQyhxx0wKaM
HDjUEOKIwrtkHthpqEanSBNYHZgmNOV7sln1Eu9g3J8.
fiK51VwhsxJ-siBMR-YFiA
A.2. Example Nested JWT
This example shows how a JWT can be used as the payload of a JWE or
JWS to create a Nested JWT. In this case, the JWT Claims Set is
first signed, and then encrypted.
Jones, et al. Standards Track [Page 26]
RFC 7519 JSON Web Token (JWT) May 2015
The inner signed JWT is identical to the example in Appendix A.2 of
[JWS]. Therefore, its computation is not repeated here. This
example then encrypts this inner JWT to the recipient using
RSAES-PKCS1-v1_5 and AES_128_CBC_HMAC_SHA_256.
The following example JOSE Header declares that:
o The Content Encryption Key is encrypted to the recipient using the
RSAES-PKCS1-v1_5 algorithm to produce the JWE Encrypted Key.
o Authenticated encryption is performed on the plaintext using the
AES_128_CBC_HMAC_SHA_256 algorithm to produce the JWE Ciphertext
and the JWE Authentication Tag.
o The plaintext is itself a JWT.
{"alg":"RSA1_5","enc":"A128CBC-HS256","cty":"JWT"}
Base64url encoding the octets of the UTF-8 representation of the JOSE
Header yields this encoded JOSE Header value:
eyJhbGciOiJSU0ExXzUiLCJlbmMiOiJBMTI4Q0JDLUhTMjU2IiwiY3R5IjoiSldUIn0
The computation of this JWT is identical to the computation of the
JWE in Appendix A.2 of [JWE], other than that different JOSE Header,
plaintext, JWE Initialization Vector, and Content Encryption Key
values are used. (The RSA key used is the same.)
The plaintext used is the octets of the ASCII [RFC20] representation
of the JWT at the end of Appendix A.2.1 of [JWS] (with all whitespace
and line breaks removed), which is a sequence of 458 octets.
The JWE Initialization Vector value used (using JSON array notation)
is:
[82, 101, 100, 109, 111, 110, 100, 32, 87, 65, 32, 57, 56, 48, 53,
50]
This example uses the Content Encryption Key represented by the
base64url-encoded value below:
GawgguFyGrWKav7AX4VKUg
Jones, et al. Standards Track [Page 27]
RFC 7519 JSON Web Token (JWT) May 2015
The final result for this Nested JWT (with line breaks for display
purposes only) is:
eyJhbGciOiJSU0ExXzUiLCJlbmMiOiJBMTI4Q0JDLUhTMjU2IiwiY3R5IjoiSldU
In0.
g_hEwksO1Ax8Qn7HoN-BVeBoa8FXe0kpyk_XdcSmxvcM5_P296JXXtoHISr_DD_M
qewaQSH4dZOQHoUgKLeFly-9RI11TG-_Ge1bZFazBPwKC5lJ6OLANLMd0QSL4fYE
b9ERe-epKYE3xb2jfY1AltHqBO-PM6j23Guj2yDKnFv6WO72tteVzm_2n17SBFvh
DuR9a2nHTE67pe0XGBUS_TK7ecA-iVq5COeVdJR4U4VZGGlxRGPLRHvolVLEHx6D
YyLpw30Ay9R6d68YCLi9FYTq3hIXPK_-dmPlOUlKvPr1GgJzRoeC9G5qCvdcHWsq
JGTO_z3Wfo5zsqwkxruxwA.
UmVkbW9uZCBXQSA5ODA1Mg.
VwHERHPvCNcHHpTjkoigx3_ExK0Qc71RMEParpatm0X_qpg-w8kozSjfNIPPXiTB
BLXR65CIPkFqz4l1Ae9w_uowKiwyi9acgVztAi-pSL8GQSXnaamh9kX1mdh3M_TT
-FZGQFQsFhu0Z72gJKGdfGE-OE7hS1zuBD5oEUfk0Dmb0VzWEzpxxiSSBbBAzP10
l56pPfAtrjEYw-7ygeMkwBl6Z_mLS6w6xUgKlvW6ULmkV-uLC4FUiyKECK4e3WZY
Kw1bpgIqGYsw2v_grHjszJZ-_I5uM-9RA8ycX9KqPRp9gc6pXmoU_-27ATs9XCvr
ZXUtK2902AUzqpeEUJYjWWxSNsS-r1TJ1I-FMJ4XyAiGrfmo9hQPcNBYxPz3GQb2
8Y5CLSQfNgKSGt0A4isp1hBUXBHAndgtcslt7ZoQJaKe_nNJgNliWtWpJ_ebuOpE
l8jdhehdccnRMIwAmU1n7SPkmhIl1HlSOpvcvDfhUN5wuqU955vOBvfkBOh5A11U
zBuo2WlgZ6hYi9-e3w29bR0C2-pp3jbqxEDw3iWaf2dc5b-LnR0FEYXvI_tYk5rd
_J9N0mg0tQ6RbpxNEMNoA9QWk5lgdPvbh9BaO195abQ.
AVO9iT5AV4CzvDJCdhSFlQ
Appendix B. Relationship of JWTs to SAML Assertions
Security Assertion Markup Language (SAML) 2.0
[OASIS.saml-core-2.0-os] provides a standard for creating security
tokens with greater expressivity and more security options than
supported by JWTs. However, the cost of this flexibility and
expressiveness is both size and complexity. SAML's use of XML
[W3C.CR-xml11-20060816] and XML Digital Signature (DSIG) [RFC3275]
contributes to the size of SAML Assertions; its use of XML and
especially XML Canonicalization [W3C.REC-xml-c14n-20010315]
contributes to their complexity.
JWTs are intended to provide a simple security token format that is
small enough to fit into HTTP headers and query arguments in URIs.
It does this by supporting a much simpler token model than SAML and
using the JSON [RFC7159] object encoding syntax. It also supports
securing tokens using Message Authentication Codes (MACs) and digital
signatures using a smaller (and less flexible) format than XML DSIG.
Therefore, while JWTs can do some of the things SAML Assertions do,
JWTs are not intended as a full replacement for SAML Assertions, but
rather as a token format to be used when ease of implementation or
compactness are considerations.
Jones, et al. Standards Track [Page 28]
RFC 7519 JSON Web Token (JWT) May 2015
SAML Assertions are always statements made by an entity about a
subject. JWTs are often used in the same manner, with the entity
making the statements being represented by the "iss" (issuer) claim,
and the subject being represented by the "sub" (subject) claim.
However, with these claims being optional, other uses of the JWT
format are also permitted.
Appendix C. Relationship of JWTs to Simple Web Tokens (SWTs)
Both JWTs and SWTs [SWT], at their core, enable sets of claims to be
communicated between applications. For SWTs, both the claim names
and claim values are strings. For JWTs, while claim names are
strings, claim values can be any JSON type. Both token types offer
cryptographic protection of their content: SWTs with HMAC SHA-256 and
JWTs with a choice of algorithms, including signature, MAC, and
encryption algorithms.
Acknowledgements
The authors acknowledge that the design of JWTs was intentionally
influenced by the design and simplicity of SWTs [SWT] and ideas for
JSON tokens that Dick Hardt discussed within the OpenID community.
Solutions for signing JSON content were previously explored by Magic
Signatures [MagicSignatures], JSON Simple Sign [JSS], and Canvas
Applications [CanvasApp], all of which influenced this document.
This specification is the work of the OAuth working group, which
includes dozens of active and dedicated participants. In particular,
the following individuals contributed ideas, feedback, and wording
that influenced this specification:
Dirk Balfanz, Richard Barnes, Brian Campbell, Alissa Cooper, Breno de
Medeiros, Stephen Farrell, Yaron Y. Goland, Dick Hardt, Joe
Hildebrand, Jeff Hodges, Edmund Jay, Warren Kumari, Ben Laurie, Barry
Leiba, Ted Lemon, James Manger, Prateek Mishra, Kathleen Moriarty,
Tony Nadalin, Axel Nennker, John Panzer, Emmanuel Raviart, David
Recordon, Eric Rescorla, Jim Schaad, Paul Tarjan, Hannes Tschofenig,
Sean Turner, and Tom Yu.
Hannes Tschofenig and Derek Atkins chaired the OAuth working group
and Sean Turner, Stephen Farrell, and Kathleen Moriarty served as
Security Area Directors during the creation of this specification.
Jones, et al. Standards Track [Page 29]
RFC 7519 JSON Web Token (JWT) May 2015
Authors' Addresses
Michael B. Jones
Microsoft
EMail: mbj@microsoft.com
URI: http://self-issued.info/
John Bradley
Ping Identity
EMail: ve7jtb@ve7jtb.com
URI: http://www.thread-safe.com/
Nat Sakimura
Nomura Research Institute
EMail: n-sakimura@nri.co.jp
URI: http://nat.sakimura.org/
Jones, et al. Standards Track [Page 30]