@@ -133,16 +133,18 @@ public function getConfig()
133133 * @param string|null $username Username (optional)
134134 * @param string|null $password User Password (optional)
135135 * @param string|null $client_id Client id (optional)
136+ * @param string|null $otp App OTP (optional)
137+ * @param string|null $recovery_code Recovery Code (optional)
136138 * @param string|null $refresh_token Refresh Token (optional)
137139 * @param string $contentType The value for the Content-Type header. Check self::contentTypes['realmsRealmProtocolOpenidConnectTokenPost'] to see the possible values for this operation
138140 *
139141 * @throws \WebMI\KeycloakApiClient\CustomApi\ApiException on non-2xx response or if the response body is not in the expected format
140142 * @throws \InvalidArgumentException
141143 * @return \WebMI\KeycloakApiClient\CustomApi\Model\RealmsRealmProtocolOpenidConnectTokenPost200Response|\WebMI\KeycloakApiClient\CustomApi\Model\RealmsRealmProtocolOpenidConnectTokenPost400Response|\WebMI\KeycloakApiClient\CustomApi\Model\RealmsRealmProtocolOpenidConnectTokenPost400Response
142144 */
143- public function realmsRealmProtocolOpenidConnectTokenPost ($ realm , $ authorization = null , $ grant_type = 'refresh_token ' , $ username = null , $ password = null , $ client_id = null , $ refresh_token = null , string $ contentType = self ::contentTypes['realmsRealmProtocolOpenidConnectTokenPost ' ][0 ])
145+ public function realmsRealmProtocolOpenidConnectTokenPost ($ realm , $ authorization = null , $ grant_type = 'refresh_token ' , $ username = null , $ password = null , $ client_id = null , $ otp = null , $ recovery_code = null , $ refresh_token = null , string $ contentType = self ::contentTypes['realmsRealmProtocolOpenidConnectTokenPost ' ][0 ])
144146 {
145- list ($ response ) = $ this ->realmsRealmProtocolOpenidConnectTokenPostWithHttpInfo ($ realm , $ authorization , $ grant_type , $ username , $ password , $ client_id , $ refresh_token , $ contentType );
147+ list ($ response ) = $ this ->realmsRealmProtocolOpenidConnectTokenPostWithHttpInfo ($ realm , $ authorization , $ grant_type , $ username , $ password , $ client_id , $ otp , $ recovery_code , $ refresh_token , $ contentType );
146148 return $ response ;
147149 }
148150
@@ -157,16 +159,18 @@ public function realmsRealmProtocolOpenidConnectTokenPost($realm, $authorization
157159 * @param string|null $username Username (optional)
158160 * @param string|null $password User Password (optional)
159161 * @param string|null $client_id Client id (optional)
162+ * @param string|null $otp App OTP (optional)
163+ * @param string|null $recovery_code Recovery Code (optional)
160164 * @param string|null $refresh_token Refresh Token (optional)
161165 * @param string $contentType The value for the Content-Type header. Check self::contentTypes['realmsRealmProtocolOpenidConnectTokenPost'] to see the possible values for this operation
162166 *
163167 * @throws \WebMI\KeycloakApiClient\CustomApi\ApiException on non-2xx response or if the response body is not in the expected format
164168 * @throws \InvalidArgumentException
165169 * @return array of \WebMI\KeycloakApiClient\CustomApi\Model\RealmsRealmProtocolOpenidConnectTokenPost200Response|\WebMI\KeycloakApiClient\CustomApi\Model\RealmsRealmProtocolOpenidConnectTokenPost400Response|\WebMI\KeycloakApiClient\CustomApi\Model\RealmsRealmProtocolOpenidConnectTokenPost400Response, HTTP status code, HTTP response headers (array of strings)
166170 */
167- public function realmsRealmProtocolOpenidConnectTokenPostWithHttpInfo ($ realm , $ authorization = null , $ grant_type = 'refresh_token ' , $ username = null , $ password = null , $ client_id = null , $ refresh_token = null , string $ contentType = self ::contentTypes['realmsRealmProtocolOpenidConnectTokenPost ' ][0 ])
171+ public function realmsRealmProtocolOpenidConnectTokenPostWithHttpInfo ($ realm , $ authorization = null , $ grant_type = 'refresh_token ' , $ username = null , $ password = null , $ client_id = null , $ otp = null , $ recovery_code = null , $ refresh_token = null , string $ contentType = self ::contentTypes['realmsRealmProtocolOpenidConnectTokenPost ' ][0 ])
168172 {
169- $ request = $ this ->realmsRealmProtocolOpenidConnectTokenPostRequest ($ realm , $ authorization , $ grant_type , $ username , $ password , $ client_id , $ refresh_token , $ contentType );
173+ $ request = $ this ->realmsRealmProtocolOpenidConnectTokenPostRequest ($ realm , $ authorization , $ grant_type , $ username , $ password , $ client_id , $ otp , $ recovery_code , $ refresh_token , $ contentType );
170174
171175 try {
172176 $ options = $ this ->createHttpClientOption ();
@@ -358,15 +362,17 @@ public function realmsRealmProtocolOpenidConnectTokenPostWithHttpInfo($realm, $a
358362 * @param string|null $username Username (optional)
359363 * @param string|null $password User Password (optional)
360364 * @param string|null $client_id Client id (optional)
365+ * @param string|null $otp App OTP (optional)
366+ * @param string|null $recovery_code Recovery Code (optional)
361367 * @param string|null $refresh_token Refresh Token (optional)
362368 * @param string $contentType The value for the Content-Type header. Check self::contentTypes['realmsRealmProtocolOpenidConnectTokenPost'] to see the possible values for this operation
363369 *
364370 * @throws \InvalidArgumentException
365371 * @return \GuzzleHttp\Promise\PromiseInterface
366372 */
367- public function realmsRealmProtocolOpenidConnectTokenPostAsync ($ realm , $ authorization = null , $ grant_type = 'refresh_token ' , $ username = null , $ password = null , $ client_id = null , $ refresh_token = null , string $ contentType = self ::contentTypes['realmsRealmProtocolOpenidConnectTokenPost ' ][0 ])
373+ public function realmsRealmProtocolOpenidConnectTokenPostAsync ($ realm , $ authorization = null , $ grant_type = 'refresh_token ' , $ username = null , $ password = null , $ client_id = null , $ otp = null , $ recovery_code = null , $ refresh_token = null , string $ contentType = self ::contentTypes['realmsRealmProtocolOpenidConnectTokenPost ' ][0 ])
368374 {
369- return $ this ->realmsRealmProtocolOpenidConnectTokenPostAsyncWithHttpInfo ($ realm , $ authorization , $ grant_type , $ username , $ password , $ client_id , $ refresh_token , $ contentType )
375+ return $ this ->realmsRealmProtocolOpenidConnectTokenPostAsyncWithHttpInfo ($ realm , $ authorization , $ grant_type , $ username , $ password , $ client_id , $ otp , $ recovery_code , $ refresh_token , $ contentType )
370376 ->then (
371377 function ($ response ) {
372378 return $ response [0 ];
@@ -385,16 +391,18 @@ function ($response) {
385391 * @param string|null $username Username (optional)
386392 * @param string|null $password User Password (optional)
387393 * @param string|null $client_id Client id (optional)
394+ * @param string|null $otp App OTP (optional)
395+ * @param string|null $recovery_code Recovery Code (optional)
388396 * @param string|null $refresh_token Refresh Token (optional)
389397 * @param string $contentType The value for the Content-Type header. Check self::contentTypes['realmsRealmProtocolOpenidConnectTokenPost'] to see the possible values for this operation
390398 *
391399 * @throws \InvalidArgumentException
392400 * @return \GuzzleHttp\Promise\PromiseInterface
393401 */
394- public function realmsRealmProtocolOpenidConnectTokenPostAsyncWithHttpInfo ($ realm , $ authorization = null , $ grant_type = 'refresh_token ' , $ username = null , $ password = null , $ client_id = null , $ refresh_token = null , string $ contentType = self ::contentTypes['realmsRealmProtocolOpenidConnectTokenPost ' ][0 ])
402+ public function realmsRealmProtocolOpenidConnectTokenPostAsyncWithHttpInfo ($ realm , $ authorization = null , $ grant_type = 'refresh_token ' , $ username = null , $ password = null , $ client_id = null , $ otp = null , $ recovery_code = null , $ refresh_token = null , string $ contentType = self ::contentTypes['realmsRealmProtocolOpenidConnectTokenPost ' ][0 ])
395403 {
396404 $ returnType = '\WebMI\KeycloakApiClient\CustomApi\Model\RealmsRealmProtocolOpenidConnectTokenPost200Response ' ;
397- $ request = $ this ->realmsRealmProtocolOpenidConnectTokenPostRequest ($ realm , $ authorization , $ grant_type , $ username , $ password , $ client_id , $ refresh_token , $ contentType );
405+ $ request = $ this ->realmsRealmProtocolOpenidConnectTokenPostRequest ($ realm , $ authorization , $ grant_type , $ username , $ password , $ client_id , $ otp , $ recovery_code , $ refresh_token , $ contentType );
398406
399407 return $ this ->client
400408 ->sendAsync ($ request , $ this ->createHttpClientOption ())
@@ -441,13 +449,15 @@ function ($exception) {
441449 * @param string|null $username Username (optional)
442450 * @param string|null $password User Password (optional)
443451 * @param string|null $client_id Client id (optional)
452+ * @param string|null $otp App OTP (optional)
453+ * @param string|null $recovery_code Recovery Code (optional)
444454 * @param string|null $refresh_token Refresh Token (optional)
445455 * @param string $contentType The value for the Content-Type header. Check self::contentTypes['realmsRealmProtocolOpenidConnectTokenPost'] to see the possible values for this operation
446456 *
447457 * @throws \InvalidArgumentException
448458 * @return \GuzzleHttp\Psr7\Request
449459 */
450- public function realmsRealmProtocolOpenidConnectTokenPostRequest ($ realm , $ authorization = null , $ grant_type = 'refresh_token ' , $ username = null , $ password = null , $ client_id = null , $ refresh_token = null , string $ contentType = self ::contentTypes['realmsRealmProtocolOpenidConnectTokenPost ' ][0 ])
460+ public function realmsRealmProtocolOpenidConnectTokenPostRequest ($ realm , $ authorization = null , $ grant_type = 'refresh_token ' , $ username = null , $ password = null , $ client_id = null , $ otp = null , $ recovery_code = null , $ refresh_token = null , string $ contentType = self ::contentTypes['realmsRealmProtocolOpenidConnectTokenPost ' ][0 ])
451461 {
452462
453463 // verify the required parameter 'realm' is set
@@ -464,6 +474,8 @@ public function realmsRealmProtocolOpenidConnectTokenPostRequest($realm, $author
464474
465475
466476
477+
478+
467479 $ resourcePath = '/realms/{realm}/protocol/openid-connect/token ' ;
468480 $ formParams = [];
469481 $ queryParams = [];
@@ -503,6 +515,14 @@ public function realmsRealmProtocolOpenidConnectTokenPostRequest($realm, $author
503515 $ formParams = array_merge ($ formParams , ObjectSerializer::toFormValue ('client_id ' , $ client_id ));
504516 }
505517 // form params
518+ if ($ otp !== null ) {
519+ $ formParams = array_merge ($ formParams , ObjectSerializer::toFormValue ('otp ' , $ otp ));
520+ }
521+ // form params
522+ if ($ recovery_code !== null ) {
523+ $ formParams = array_merge ($ formParams , ObjectSerializer::toFormValue ('recovery_code ' , $ recovery_code ));
524+ }
525+ // form params
506526 if ($ refresh_token !== null ) {
507527 $ formParams = array_merge ($ formParams , ObjectSerializer::toFormValue ('refresh_token ' , $ refresh_token ));
508528 }
0 commit comments