-
-
Notifications
You must be signed in to change notification settings - Fork 569
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
[READY] v2.x - Rework SP request UUID generation to remove mutable constant #735
Conversation
- Replace the mutable RubySaml::Utils::UUID_PREFIX constant with `Settings.sp_uuid_prefix` - Make Authnrequest, etc. `uuid` attribute to be immutable. - Initialize Authnrequest, etc. `uuid` attribute when `create` is called, based on `Settings.sp_uuid_prefix`, not when instantiating the Ruby object.
@pitbulk would like to get your feedback on this. Edit: I've decided to leave the mutator in, so as to minimize change and provide users a workaround if they need it. |
@johnnyshields it seems tests are failing. |
… into v2.x-rework-uuid
@pitbulk This is ready for final review. |
1 failure due to that JRuby Zlib issue still. Seems my previous fix didn't resolve it... This is fine to merge. |
@johnnyshields, now that prefix can be defined, I believe that should be mentioned what the spec requires in terms of the possible values to be set for the ID attribute:
|
@pitbulk please check now. |
This PR reworks the way SP request UUID generation is handled.
RubySaml::Utils::UUID_PREFIX
constant andset_prefix
method withSettings.sp_uuid_prefix
uuid
attribute to be immutable.uuid
attribute whencreate
is called, based onSettings.sp_uuid_prefix
, not when instantiating the Ruby object.