diff options
author | Jacob Hoffman-Andrews <github@hoffman-andrews.com> | 2017-04-07 19:52:12 +0300 |
---|---|---|
committer | Brad Warren <bmw@users.noreply.github.com> | 2017-04-07 19:52:12 +0300 |
commit | d557c39c999605dc726d9c866b688843ff4c7081 (patch) | |
tree | 3c36c2a743a3615bf3c1d2c04c0fa717d453f00f /acme | |
parent | 315b6d0cf139a708300f9b893b2055f9dda601c5 (diff) |
Remove obsolete fields from Registration. (#4339)
Authorizations and certificates were in the original spec but have since been
deleted.
Diffstat (limited to 'acme')
-rw-r--r-- | acme/acme/messages.py | 22 | ||||
-rw-r--r-- | acme/acme/messages_test.py | 3 |
2 files changed, 1 insertions, 24 deletions
diff --git a/acme/acme/messages.py b/acme/acme/messages.py index 4070290ad..5784e8e11 100644 --- a/acme/acme/messages.py +++ b/acme/acme/messages.py @@ -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:' diff --git a/acme/acme/messages_test.py b/acme/acme/messages_test.py index e84c3e992..ab05a89b7 100644 --- a/acme/acme/messages_test.py +++ b/acme/acme/messages_test.py @@ -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, |