Skip to content

Python: Construct CredentialRPK from parts#270

Merged
geonnave merged 5 commits intolake-rs:mainfrom
chrysn-pull-requests:python-credential
May 16, 2024
Merged

Python: Construct CredentialRPK from parts#270
geonnave merged 5 commits intolake-rs:mainfrom
chrysn-pull-requests:python-credential

Conversation

@chrysn
Copy link
Copy Markdown
Member

@chrysn chrysn commented May 15, 2024

Closes: #269

By using PyO3's enum AutoCredentialRpk, this is not a breaking change in the Python API.

@geonnave
Copy link
Copy Markdown
Collaborator

Thanks, just went through it. Looks like it allow constructing from either just value or public key and kid? (or maybe value and public key and kid?)

I see that the API doesn't change, but maybe there could be a new test showing the new supported behavior?

@chrysn
Copy link
Copy Markdown
Member Author

chrysn commented May 16, 2024

Allowed construction variants now clarified in documentation.

Tests now show the construction, demonstrate equivalence and test creating a responder from both forms.

@geonnave
Copy link
Copy Markdown
Collaborator

Looks good, thanks.

@geonnave geonnave merged commit 9abbef4 into lake-rs:main May 16, 2024
@chrysn chrysn deleted the python-credential branch May 16, 2024 22:39
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.

Python: Construct CredentialRPK from parts

2 participants