@@ -77,6 +77,26 @@ settings.idp_slo_service_binding = :redirect
7777
7878For clarity, the default value of both parameters is ` :redirect ` if they are not set.
7979
80+ ### Addition of Settings sp_uuid_prefix and removal of Utils::UUID_PREFIX
81+
82+ By default, the ` uuid ` (aliased to ` request_id ` / ` response_id ` ) method in ` RubySaml::Authrequest ` ,
83+ ` RubySaml::Logoutrequest ` , and ` RubySaml::Logoutresponse ` uses the ` _ ` character as a default prefix,
84+ for example ` _a1b3c5d7-9f1e-3d5c-7b1a-9f1e3d5c7b1a ` . In RubySaml, versions prior to ` 2.0.0 ` , it was
85+ possible to change this default prefix by either calling ` RubySaml::Utils.set_prefix ` or by mutating
86+ the ` RubySaml::Utils::UUID_PREFIX ` constant (which was what ` .set_prefix ` did.) In RubySaml ` 2.0.0 ` ,
87+ this prefix is now set using ` settings.sp_uuid_prefix ` :
88+
89+ ``` ruby
90+ # Change the default prefix from `_` to `my_id_`
91+ settings.sp_uuid_prefix = ' my_id_'
92+ ```
93+
94+ A side-effect of this change is that the ` uuid ` (aliased to ` request_id ` / ` response_id ` ) method in
95+ ` RubySaml::Authrequest ` , ` RubySaml::Logoutrequest ` , and ` RubySaml::Logoutresponse ` now is ` nil ` until
96+ the ` #create ` method is called. Previously, it was generated automatically during object instantiation.
97+ After calling ` #create ` for the first time the UUID will not change, even if a ` Settings ` object with
98+ a different ` sp_uuid_prefix ` is passed-in on subsequent calls.
99+
80100### Deprecation of compression settings
81101
82102The ` settings.compress_request ` and ` settings.compress_response ` parameters have been deprecated
@@ -103,11 +123,10 @@ The following parameters in `RubySaml::Settings` are deprecated and will be remo
103123
104124### Minor changes to Util#format_cert and #format_private_key
105125
106-
107126Version ` 2.0.0 ` standardizes how RubySaml reads and formats certificate and private key
108127PEM strings. In general, version ` 2.0.0 ` is more permissive than ` 1.x ` , and the changes
109128are not anticipated to affect most users. Please note the change affects parameters
110- such ` #idp_cert ` and ` #certificate ` , as well as the ` RubySaml::Util #format_cert `
129+ such ` #idp_cert ` and ` #certificate ` , as well as the ` RubySaml::Utils #format_cert `
111130and ` #format_private_key ` methods. Specifically:
112131
113132
0 commit comments