Skip to content

Commit 3eb8942

Browse files
authored
Fix copy-pasteability of code example
Though this code is already not copy-pasteable as valid Ruby (due to the trailing `...` at the end of the `idp_cert_multi` array), that's at least obviously invalid and fast enough to fix. This missing comma, however, causes parser errors that are less obvious and should be added!
1 parent 3463fdd commit 3eb8942

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ use OmniAuth::Strategies::SAML,
3737
:idp_cert_multi => {
3838
:signing => ["-----BEGIN CERTIFICATE-----\n...-----END CERTIFICATE-----", "-----BEGIN CERTIFICATE-----\n...-----END CERTIFICATE-----", ...],
3939
:encryption => []
40-
}
40+
},
4141
:idp_cert_fingerprint => "E7:91:B2:E1:...",
4242
:idp_cert_fingerprint_validator => lambda { |fingerprint| fingerprint },
4343
:name_identifier_format => "urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress"
@@ -64,7 +64,7 @@ Rails.application.config.middleware.use OmniAuth::Builder do
6464
:idp_cert_multi => {
6565
:signing => ["-----BEGIN CERTIFICATE-----\n...-----END CERTIFICATE-----", "-----BEGIN CERTIFICATE-----\n...-----END CERTIFICATE-----", ...],
6666
:encryption => []
67-
}
67+
},
6868
:idp_cert_fingerprint => "E7:91:B2:E1:...",
6969
:idp_cert_fingerprint_validator => lambda { |fingerprint| fingerprint },
7070
:name_identifier_format => "urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress"

0 commit comments

Comments
 (0)