Skip to content

Commit 58985b6

Browse files
authored
Apply suggestions from code review
1 parent 7e4737f commit 58985b6

File tree

4 files changed

+6
-24
lines changed

4 files changed

+6
-24
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ mdoci = MdocCborIssuer(
6363
mdoc = mdoci.new(
6464
doctype="eu.europa.ec.eudiw.pid.1",
6565
data=PID_DATA,
66-
cert_path="app/keys/IACAmDLRoot01.der" # DS certificate
66+
# cert_path="app/keys/IACAmDLRoot01.der" # DS certificate
6767
)
6868
6969
````
@@ -246,7 +246,7 @@ Other examples at [cbor official documentation](https://github.com/agronholm/cbo
246246
#### CBOR Diagnostic representation
247247

248248
- [CBOR-DIAG-PY](https://github.com/chrysn/cbor-diag-py)
249-
- [Authlete's CBOR diagnostic tools](https://nextdev-api.authlete.net/api/cbor)
249+
- [Authlete's CBOR diagnostic tools](https://nextdev-api.authlete.net/api/cbor)
250250
- [Auth0 CBOR diagnostic tool](https://www.mdl.me/)
251251

252252
#### X.509 certificates and chains

pymdoccbor/mso/issuer.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ def __init__(
110110

111111
if _value_cbortag:
112112
v = cbor2.CBORTag(_value_cbortag, value=v)
113-
# print("\n-----\n K,V ", k, "\n", v)
114113

115114
if isinstance(v, dict):
116115
for k2, v2 in v.items():
@@ -160,7 +159,7 @@ def sign(
160159
doctype: str = None,
161160
) -> Sign1Message:
162161
"""
163-
Sign a mso and returns itprivate_key
162+
Sign a mso and returns it
164163
165164
:param device_key: Union[dict, None]: the device key
166165
:param valid_from: Union[None, datetime.datetime]: the valid from date
@@ -234,7 +233,7 @@ def sign(
234233
)
235234

236235
else:
237-
# print("payload diganostic notation: \n", cbor2diag(cbor2.dumps(cbor2.CBORTag(24,cbor2.dumps(payload)))))
236+
logger.debug("payload diagnostic notation: {cbor2diag(cbor2.dumps(cbor2.CBORTag(24,cbor2.dumps(payload))))}")
238237

239238
mso = Sign1Message(
240239
phdr={

pymdoccbor/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
)
3737

3838
X509_SAN_URL = os.getenv(
39-
"X509_SAN_URL", "https://credential-issuer.oidc-federation.online"
39+
"X509_SAN_URL", "https://credential-issuer.example.org"
4040
)
4141

4242
CBORTAGS_ATTR_MAP = {

setup.py

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,3 @@
1-
# Modifications have been made to the original file (available at https://github.com/IdentityPython/pyMDOC-CBOR)
2-
# All modifications Copyright (c) 2023 European Commission
3-
4-
# All modifications licensed under the Apache License, Version 2.0 (the "License");
5-
# you may not use this file except in compliance with the License.
6-
# You may obtain a copy of the License at
7-
8-
# http://www.apache.org/licenses/LICENSE-2.0
9-
10-
# Unless required by applicable law or agreed to in writing, software
11-
# distributed under the License is distributed on an "AS IS" BASIS,
12-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
# See the License for the specific language governing permissions and
14-
# limitations under the License.
15-
161
import re
172

183
from glob import glob
@@ -40,13 +25,11 @@ def readme():
4025
classifiers=[
4126
"Development Status :: 4 - Beta",
4227
"License :: OSI Approved :: Apache Software License",
43-
"Programming Language :: Python :: 3.8",
44-
"Programming Language :: Python :: 3.9",
4528
"Programming Language :: Python :: 3.10",
4629
"Programming Language :: Python :: 3.11",
4730
"Topic :: Software Development :: Libraries :: Python Modules",
4831
],
49-
url="https://github.com/peppelinux/pyMDL-MDOC",
32+
url="https://github.com/IdentityPython/pyMDL-MDOC",
5033
author="Giuseppe De Marco",
5134
author_email="[email protected]",
5235
license="License :: OSI Approved :: Apache Software License",

0 commit comments

Comments
 (0)