You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-3Lines changed: 18 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -279,6 +279,21 @@ The following attributes are set:
279
279
* idp_slo_target_url
280
280
* idp_cert_fingerprint
281
281
282
+
### Retrieve one Entity Descriptor when many exist in Metadata
283
+
284
+
If the Meta data contains the data for many SAML entities, the relevant Entity
285
+
Descriptor can be specified when retrieving the settings from the
286
+
IdpMetadataParser:
287
+
288
+
```ruby
289
+
validate_cert = true
290
+
settings = idp_metadata_parser.parse_remote(
291
+
"https://example.com/auth/saml2/idp/metadata",
292
+
validate_cert,
293
+
entity_id: "http//example.com/target/entity"
294
+
)
295
+
```
296
+
282
297
## Retrieving Attributes
283
298
284
299
If you are using `saml:AttributeStatement` to transfer data like the username, you can access all the attributes through `response.attributes`. It contains all the `saml:AttributeStatement`s with its 'Name' as an indifferent key and one or more `saml:AttributeValue`s as values. The value returned depends on the value of the
@@ -411,9 +426,9 @@ The settings related to sign are stored in the `security` attribute of the setti
411
426
```ruby
412
427
settings.security[:authn_requests_signed] = true # Enable or not signature on AuthNRequest
413
428
settings.security[:logout_requests_signed] = true # Enable or not signature on Logout Request
414
-
settings.security[:logout_responses_signed] = true # Enable or not
429
+
settings.security[:logout_responses_signed] = true # Enable or not
415
430
signature on Logout Response
416
-
settings.security[:want_assertions_signed] = true # Enable or not
431
+
settings.security[:want_assertions_signed] = true # Enable or not
417
432
the requirement of signed assertion
418
433
settings.security[:metadata_signed] = true # Enable or not signature on Metadata
419
434
@@ -426,7 +441,7 @@ The settings related to sign are stored in the `security` attribute of the setti
426
441
```
427
442
428
443
Notice that the RelayState parameter is used when creating the Signature on the HTTP-Redirect Binding.
429
-
Remember to provide it to the Signature builder if you are sending a `GET RelayState` parameter or the
444
+
Remember to provide it to the Signature builder if you are sending a `GET RelayState` parameter or the
430
445
signature validation process will fail at the Identity Provider.
431
446
432
447
The Service Provider will sign the request/responses with its private key.
0 commit comments