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

Commit 5e04682

Browse files
authored
Merge pull request #149 from melanger/patch-2
feat: add RawID to session manager
2 parents 2ae689d + 6c65980 commit 5e04682

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/oidcop/session/manager.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@
2525
logger = logging.getLogger(__name__)
2626

2727

28+
class RawID(object):
29+
def __init__(self, *args, **kwargs):
30+
pass
31+
32+
def __call__(self, uid, *args, **kwargs):
33+
return uid
34+
35+
2836
def pairwise_id(uid, sector_identifier, salt="", **kwargs):
2937
return hashlib.sha256(
3038
("{}{}{}".format(uid, sector_identifier, salt)).encode("utf-8")

0 commit comments

Comments
 (0)