mirror of
https://github.com/certbot/certbot.git
synced 2026-07-30 17:54:25 +02:00
Remove obsolete fields from Registration. (#4339)
Authorizations and certificates were in the original spec but have since been deleted.
This commit is contained in:
committed by
Brad Warren
parent
315b6d0cf1
commit
d557c39c99
@@ -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:'
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user