-
Notifications
You must be signed in to change notification settings - Fork 3
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: builder pattern for id_token and response #26
Conversation
Add tests for RequestUrl Add missing request parameters Add sphereon demo website test Update documentation with new RequestUrl Remove sphereon demo example Add validate_request method to Provider struct Add preoper Ser and De for SiopRequest and RequestBuilder Add skeptic for Markdown code testing Add support for Request by reference fix: fix rebase conflicts Add comments and fix some tests fix: Move `derivative` to dev-dependencies Refactor Provider and Subject improve tests and example using wiremock Improve struct field serde fix: remove claims from lib.rs style: fix arguments order Add did:key DID method Add support for Request by reference fix: Remove lifetime annotations Add preoper Ser and De for SiopRequest and RequestBuilder Add Scope and Claim fix: fix rebase conflicts
c3f4839
to
79053a2
Compare
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.
Great work! 🥳
src/lib.rs
Outdated
|
||
#[macro_export] | ||
macro_rules! builder_fn { | ||
( $name:ident, $ty:ty) => { |
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.
Is this whitespace before $name
intended? If no, why did fmt
not find it?
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.
Oh no not intended, nice catch. Apparently cargo fmt has more difficulties with formatting macros so good to take that into consideration 👍 : rust-lang/rustfmt#8
Description of change
Moved (and improved)
builder_fn!
andparse_other
tolib.rs
since they can be reused for multiple builders and structs.Links to any relevant issues
#20
How the change has been tested
Multiple unit tests
Definition of Done checklist
Add an
x
to the boxes that are relevant to your changes.