Remove obsolete fields from Registration. (#4339)

Authorizations and certificates were in the original spec but have since been
deleted.
This commit is contained in:
Jacob Hoffman-Andrews
2017-04-07 09:52:12 -07:00
committed by Brad Warren
parent 315b6d0cf1
commit d557c39c99
2 changed files with 1 additions and 24 deletions
-22
View File
@@ -237,10 +237,6 @@ class Registration(ResourceBody):
:ivar tuple contact: Contact information following ACME spec,
`tuple` of `unicode`.
:ivar unicode agreement:
:ivar unicode authorizations: URI where
`messages.Registration.Authorizations` can be found.
:ivar unicode certificates: URI where
`messages.Registration.Certificates` can be found.
"""
# on new-reg key server ignores 'key' and populates it based on
@@ -248,26 +244,8 @@ class Registration(ResourceBody):
key = jose.Field('key', omitempty=True, decoder=jose.JWK.from_json)
contact = jose.Field('contact', omitempty=True, default=())
agreement = jose.Field('agreement', omitempty=True)
authorizations = jose.Field('authorizations', omitempty=True)
certificates = jose.Field('certificates', omitempty=True)
status = jose.Field('status', omitempty=True)
class Authorizations(jose.JSONObjectWithFields):
"""Authorizations granted to Account in the process of registration.
:ivar tuple authorizations: URIs to Authorization Resources.
"""
authorizations = jose.Field('authorizations')
class Certificates(jose.JSONObjectWithFields):
"""Certificates granted to Account in the process of registration.
:ivar tuple certificates: URIs to Certificate Resources.
"""
certificates = jose.Field('certificates')
phone_prefix = 'tel:'
email_prefix = 'mailto:'
+1 -2
View File
@@ -170,8 +170,7 @@ class RegistrationTest(unittest.TestCase):
from acme.messages import Registration
self.reg = Registration(key=key, contact=contact, agreement=agreement)
self.reg_none = Registration(authorizations='uri/authorizations',
certificates='uri/certificates')
self.reg_none = Registration()
self.jobj_to = {
'contact': contact,