@@ -37,6 +37,10 @@ use OmniAuth::Strategies::SAML,
37
37
:idp_sso_target_url => " idp_sso_target_url" ,
38
38
:idp_sso_target_url_runtime_params => {:original_request_param => :mapped_idp_param },
39
39
:idp_cert => " -----BEGIN CERTIFICATE-----\n ...-----END CERTIFICATE-----" ,
40
+ :idp_cert_multi => {
41
+ :signing => [" -----BEGIN CERTIFICATE-----\n ...-----END CERTIFICATE-----" , " -----BEGIN CERTIFICATE-----\n ...-----END CERTIFICATE-----" , ...],
42
+ :encryption => []
43
+ }
40
44
:idp_cert_fingerprint => " E7:91:B2:E1:..." ,
41
45
:idp_cert_fingerprint_validator => lambda { |fingerprint | fingerprint },
42
46
:name_identifier_format => " urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress"
@@ -60,6 +64,10 @@ Rails.application.config.middleware.use OmniAuth::Builder do
60
64
:idp_sso_target_url => " idp_sso_target_url" ,
61
65
:idp_sso_target_url_runtime_params => {:original_request_param => :mapped_idp_param },
62
66
:idp_cert => " -----BEGIN CERTIFICATE-----\n ...-----END CERTIFICATE-----" ,
67
+ :idp_cert_multi => {
68
+ :signing => [" -----BEGIN CERTIFICATE-----\n ...-----END CERTIFICATE-----" , " -----BEGIN CERTIFICATE-----\n ...-----END CERTIFICATE-----" , ...],
69
+ :encryption => []
70
+ }
63
71
:idp_cert_fingerprint => " E7:91:B2:E1:..." ,
64
72
:idp_cert_fingerprint_validator => lambda { |fingerprint | fingerprint },
65
73
:name_identifier_format => " urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress"
@@ -107,16 +115,20 @@ Note that when [integrating with Devise](#devise-integration), the URL path will
107
115
` original_param_value ` . Optional.
108
116
109
117
* ` :idp_cert ` - The identity provider's certificate in PEM format. Takes precedence
110
- over the fingerprint option below. This option or ` :idp_cert_fingerprint ` or ` :idp_cert_fingerprint_validator ` must
118
+ over the fingerprint option below. This option or ` :idp_cert_multi ` or ` : idp_cert_fingerprint` or ` :idp_cert_fingerprint_validator ` must
111
119
be present.
120
+
121
+ * ` :idp_cert_multi ` - Multiple identity provider certificates in PEM format. Takes precedence
122
+ over the fingerprint option below. This option ` :idp_cert ` or ` :idp_cert_fingerprint ` or ` :idp_cert_fingerprint_validator ` must
123
+ be present.
112
124
113
125
* ` :idp_cert_fingerprint ` - The SHA1 fingerprint of the certificate, e.g.
114
126
"90:CC:16:F0:8D:...". This is provided from the identity provider when setting up
115
- the relationship. This option or ` :idp_cert ` or ` :idp_cert_fingerprint_validator ` MUST be present.
127
+ the relationship. This option or ` :idp_cert ` or ` :idp_cert_multi ` or ` : idp_cert_fingerprint_validator` MUST be present.
116
128
117
129
* ` :idp_cert_fingerprint_validator ` - A lambda that MUST accept one parameter
118
130
(the fingerprint), verify if it is valid and return it if successful. This option
119
- or ` :idp_cert ` or ` :idp_cert_fingerprint ` MUST be present.
131
+ or ` :idp_cert ` or ` :idp_cert_multi ` or ` : idp_cert_fingerprint` MUST be present.
120
132
121
133
* ` :name_identifier_format ` - Used during SP-initiated SSO. Describes the format of
122
134
the username required by this application. If you need the email address, use
0 commit comments