@@ -117,11 +117,27 @@ class SAML {
117
117
if ( options . privateCert ) {
118
118
console . warn ( "options.privateCert has been deprecated; use options.privateKey instead." ) ;
119
119
120
- if ( ! options . privateKey ) {
120
+ if ( options . privateKey == null ) {
121
121
options . privateKey = options . privateCert ;
122
122
}
123
123
}
124
124
125
+ if ( options . RACComparison ) {
126
+ console . warn ( "options.RACComparison has been deprecated; use options.racComparison instead." )
127
+
128
+ if ( options . racComparison == null ) {
129
+ options . racComparison = options . RACComparison ;
130
+ }
131
+ }
132
+
133
+ if ( options . disableRequestACSUrl ) {
134
+ console . warn ( "options.disableRequestACSUrl has been deprecated; use options.disableRequestAcsUrl instead." )
135
+
136
+ if ( options . disableRequestAcsUrl == null ) {
137
+ options . disableRequestAcsUrl = options . disableRequestACSUrl ;
138
+ }
139
+ }
140
+
125
141
if ( Object . prototype . hasOwnProperty . call ( options , 'cert' ) && ! options . cert ) {
126
142
throw new Error ( 'Invalid property: cert must not be empty' ) ;
127
143
}
@@ -185,8 +201,8 @@ class SAML {
185
201
* - maximum: Assertion context must be no stronger than a context in the list
186
202
* - better: Assertion context must be stronger than all contexts in the list
187
203
*/
188
- if ( ! options . RACComparison || [ 'exact' , 'minimum' , 'maximum' , 'better' ] . indexOf ( options . RACComparison ) === - 1 ) {
189
- options . RACComparison = 'exact' ;
204
+ if ( ! options . racComparison || [ 'exact' , 'minimum' , 'maximum' , 'better' ] . indexOf ( options . racComparison ) === - 1 ) {
205
+ options . racComparison = 'exact' ;
190
206
}
191
207
192
208
return options as SAMLOptions ;
@@ -274,7 +290,7 @@ class SAML {
274
290
request [ 'samlp:AuthnRequest' ] [ '@ForceAuthn' ] = true ;
275
291
}
276
292
277
- if ( ! this . options . disableRequestACSUrl ) {
293
+ if ( ! this . options . disableRequestAcsUrl ) {
278
294
request [ 'samlp:AuthnRequest' ] [ '@AssertionConsumerServiceURL' ] = this . getCallbackUrl ( req ) ;
279
295
}
280
296
@@ -297,7 +313,7 @@ class SAML {
297
313
298
314
request [ 'samlp:AuthnRequest' ] [ 'samlp:RequestedAuthnContext' ] = {
299
315
'@xmlns:samlp' : 'urn:oasis:names:tc:SAML:2.0:protocol' ,
300
- '@Comparison' : this . options . RACComparison ,
316
+ '@Comparison' : this . options . racComparison ,
301
317
'saml:AuthnContextClassRef' : authnContextClassRefs
302
318
} ;
303
319
}
0 commit comments