Skip to content

Avoid mutating caller relying-party options - #509

Open
OskarEichler wants to merge 1 commit into
cedarcode:masterfrom
OskarEichler:audit/preserve-rp-options
Open

Avoid mutating caller relying-party options#509
OskarEichler wants to merge 1 commit into
cedarcode:masterfrom
OskarEichler:audit/preserve-rp-options

Conversation

@OskarEichler

Copy link
Copy Markdown

CreationOptions currently fills name and id in the caller-owned rp hash. Duplicate it before applying defaults so option construction has no external side effect. Verified with the full 502-example suite, a focused mutation model, RuboCop, and syntax checks on Ruby 4.0 and Ruby 3.2.11.

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.

1 participant