Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit 00792c3

Browse files
committed
post_logout_redirect_uri is singleton.
Fixed dump conversion.
1 parent d803147 commit 00792c3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/oidcmsg/impexp.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from typing import List
33
from typing import Optional
44

5+
from cryptojwt import as_unicode
56
from cryptojwt.utils import as_bytes
67
from cryptojwt.utils import importer
78
from cryptojwt.utils import qualified_name
@@ -25,7 +26,7 @@ def __init__(self):
2526
def dump_attr(self, cls, item, exclude_attributes: Optional[List[str]] = None) -> dict:
2627
if cls in [None, 0, "", [], {}, bool, b'']:
2728
if cls == b'':
28-
val = as_bytes(item)
29+
val = as_unicode(item)
2930
else:
3031
val = item
3132
elif cls == "DICT_TYPE":

src/oidcmsg/oidc/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ class RegistrationRequest(Message):
633633
# "client_id": SINGLE_OPTIONAL_STRING,
634634
# "client_secret": SINGLE_OPTIONAL_STRING,
635635
# "access_token": SINGLE_OPTIONAL_STRING,
636-
"post_logout_redirect_uris": OPTIONAL_LIST_OF_STRINGS,
636+
"post_logout_redirect_uri": SINGLE_OPTIONAL_STRING,
637637
"frontchannel_logout_uri": SINGLE_OPTIONAL_STRING,
638638
"frontchannel_logout_session_required": SINGLE_OPTIONAL_BOOLEAN,
639639
"backchannel_logout_uri": SINGLE_OPTIONAL_STRING,

0 commit comments

Comments
 (0)