Skip to content
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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

peppelinux
Copy link
Member

@peppelinux peppelinux commented Feb 17, 2024

This PR:

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
Copy link
Member Author

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)
Copy link
Member Author

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
Copy link
Member Author

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

@peppelinux peppelinux marked this pull request as draft February 20, 2024 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

iat selective disclosable
1 participant