-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: iat disclosable #18
base: main
Are you sure you want to change the base?
Conversation
b528c49
to
0d47902
Compare
Signed-off-by: Giuseppe De Marco <[email protected]>
_res = testcase['user_claims'][ | ||
[ | ||
k for k,v in testcase['user_claims'].items() | ||
if hasattr(k, "value") and k.value == attr_name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here I was lazy, I would have to inspect the type, like isinstance(x, SDObj)
if include_default_claims: | ||
claims = { | ||
"iss": settings["identifiers"]["issuer"], | ||
"iat": settings["iat"], | ||
"exp": settings["exp"], | ||
"exp": settings.get("exp", exp) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there are some claims that if not SD then they must/should be present since are required or recommended (that' include_default_claims
).
IAT is one of these, if not present as SDobj it must be included in plain
claims = dict() | ||
|
||
if not _iat: | ||
claims['iat'] = iat |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this must be refactored
I can remove that if
and use claims['iat'] = _iat or iat
This PR:
iat