@@ -137,6 +137,7 @@ class SAML(Plugin):
137
137
role: STRING*
138
138
url: STRING*
139
139
auth_type: ("basic" | "digest" | "ntlm")
140
+ http_method: ("GET"| "POST")
140
141
http_headers:
141
142
STRING: STRING
142
143
no_verify: BOOLEAN
@@ -175,6 +176,11 @@ class SAML(Plugin):
175
176
specified, it must be one of `basic`, `digest`, or `ntlm`. The default value
176
177
is `basic`. If using NTLM, username should be specified as `domain\\ username`.
177
178
179
+ `http_method`
180
+ : The HTTP method to use when authenticating with the IdP. If
181
+ specified, it must be one of `GET`, `POST`. The default value
182
+ is `GET`.
183
+
178
184
`http_headers`
179
185
: Additional HTTP headers to send in the request to the IdP. If specified,
180
186
it must be a dictionary of `key: value` pairs, where keys and values are
@@ -275,6 +281,7 @@ def instantiate(self, args):
275
281
role = args .saml_role ,
276
282
url = cfg ("url" , type = URL , must_exist = True ),
277
283
auth = auth (args .saml_username , args .saml_password ),
284
+ http_method = cfg ("http_method" , type = Choice ("GET" , "POST" ), default = "GET" ),
278
285
headers = cfg ("http_headers" , type = Dict (Str , Str ), default = {}),
279
286
duration = args .saml_duration ,
280
287
saml_duration = args .saml_assertion_duration ,
@@ -458,6 +465,7 @@ class SAMLCrossAccount(AbstractCrossAccount):
458
465
role: STRING*
459
466
url: STRING*
460
467
auth_type: ("basic" | "digest" | "ntlm")
468
+ http_method: ("GET"| "POST")
461
469
http_headers:
462
470
STRING: STRING
463
471
no_verify: BOOLEAN
@@ -503,6 +511,11 @@ class SAMLCrossAccount(AbstractCrossAccount):
503
511
specified, it must be one of `basic`, `digest`, or `ntlm`. The default value
504
512
is `basic`. If using NTLM, username should be specified as `domain\\ username`.
505
513
514
+ `http_method`
515
+ : The HTTP method to use when authenticating with the IdP. If
516
+ specified, it must be one of `GET`, `POST`. The default value
517
+ is `GET`.
518
+
506
519
`http_headers`
507
520
: Additional HTTP headers to send in the request to the IdP. If specified,
508
521
it must be a dictionary of `key: value` pairs, where keys and values are
0 commit comments