Skip to content

Commit b91bbc6

Browse files
Update UPGRADING.md
1 parent 3e3e250 commit b91bbc6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

UPGRADING.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,15 @@ this prefix is now set using `settings.sp_uuid_prefix`:
8989
```ruby
9090
# Change the default prefix from `_` to `my_id_`
9191
settings.sp_uuid_prefix = 'my_id_'
92+
93+
# Create the AuthNRequest message
94+
request = RubySaml::Authrequest.new
95+
request.create(settings)
96+
request.uuid #=> "my_id_a1b3c5d7-9f1e-3d5c-7b1a-9f1e3d5c7b1a"
9297
```
9398

9499
A side-effect of this change is that the `uuid` of the `Authrequest`, `Logoutrequest`, and `Logoutresponse`
95-
classes now is `nil` until the `#create` method is called (previously, it was generated during object instantiation.)
100+
classes now is `nil` until the `#create` method is called (previously, it was set in the constructor.)
96101
After calling `#create` for the first time the `uuid` will not change, even if a `Settings` object with
97102
a different `sp_uuid_prefix` is passed-in on subsequent calls.
98103

0 commit comments

Comments
 (0)