@@ -72,7 +72,7 @@ class CustomApi
7272 /** @var string[] $contentTypes **/
7373 public const contentTypes = [
7474 'realmsRealmProtocolOpenidConnectTokenPost ' => [
75- 'multipart/ form-data ' ,
75+ 'application/x-www- form-urlencoded ' ,
7676 ],
7777 ];
7878
@@ -128,20 +128,20 @@ public function getConfig()
128128 * Oidc Login
129129 *
130130 * @param string $realm realm name (not id!) (required)
131- * @param string $client_id Client id (required)
132- * @param string $grant_type Grant Type (required)
133131 * @param string|null $username Username (optional)
134132 * @param string|null $password User Password (optional)
133+ * @param string|null $client_id Client id (optional)
134+ * @param string|null $grant_type Grant Type (optional)
135135 * @param string|null $refresh_token Refresh Token (optional)
136136 * @param string $contentType The value for the Content-Type header. Check self::contentTypes['realmsRealmProtocolOpenidConnectTokenPost'] to see the possible values for this operation
137137 *
138138 * @throws \WebMI\KeycloakApiClient\CustomApi\ApiException on non-2xx response or if the response body is not in the expected format
139139 * @throws \InvalidArgumentException
140140 * @return \WebMI\KeycloakApiClient\CustomApi\Model\RealmsRealmProtocolOpenidConnectTokenPost200Response|\WebMI\KeycloakApiClient\CustomApi\Model\RealmsRealmProtocolOpenidConnectTokenPost400Response|\WebMI\KeycloakApiClient\CustomApi\Model\RealmsRealmProtocolOpenidConnectTokenPost400Response
141141 */
142- public function realmsRealmProtocolOpenidConnectTokenPost ($ realm , $ client_id , $ grant_type , $ username = null , $ password = null , $ refresh_token = null , string $ contentType = self ::contentTypes['realmsRealmProtocolOpenidConnectTokenPost ' ][0 ])
142+ public function realmsRealmProtocolOpenidConnectTokenPost ($ realm , $ username = null , $ password = null , $ client_id = null , $ grant_type = null , $ refresh_token = null , string $ contentType = self ::contentTypes['realmsRealmProtocolOpenidConnectTokenPost ' ][0 ])
143143 {
144- list ($ response ) = $ this ->realmsRealmProtocolOpenidConnectTokenPostWithHttpInfo ($ realm , $ client_id , $ grant_type , $ username , $ password , $ refresh_token , $ contentType );
144+ list ($ response ) = $ this ->realmsRealmProtocolOpenidConnectTokenPostWithHttpInfo ($ realm , $ username , $ password , $ client_id , $ grant_type , $ refresh_token , $ contentType );
145145 return $ response ;
146146 }
147147
@@ -151,20 +151,20 @@ public function realmsRealmProtocolOpenidConnectTokenPost($realm, $client_id, $g
151151 * Oidc Login
152152 *
153153 * @param string $realm realm name (not id!) (required)
154- * @param string $client_id Client id (required)
155- * @param string $grant_type Grant Type (required)
156154 * @param string|null $username Username (optional)
157155 * @param string|null $password User Password (optional)
156+ * @param string|null $client_id Client id (optional)
157+ * @param string|null $grant_type Grant Type (optional)
158158 * @param string|null $refresh_token Refresh Token (optional)
159159 * @param string $contentType The value for the Content-Type header. Check self::contentTypes['realmsRealmProtocolOpenidConnectTokenPost'] to see the possible values for this operation
160160 *
161161 * @throws \WebMI\KeycloakApiClient\CustomApi\ApiException on non-2xx response or if the response body is not in the expected format
162162 * @throws \InvalidArgumentException
163163 * @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)
164164 */
165- public function realmsRealmProtocolOpenidConnectTokenPostWithHttpInfo ($ realm , $ client_id , $ grant_type , $ username = null , $ password = null , $ refresh_token = null , string $ contentType = self ::contentTypes['realmsRealmProtocolOpenidConnectTokenPost ' ][0 ])
165+ public function realmsRealmProtocolOpenidConnectTokenPostWithHttpInfo ($ realm , $ username = null , $ password = null , $ client_id = null , $ grant_type = null , $ refresh_token = null , string $ contentType = self ::contentTypes['realmsRealmProtocolOpenidConnectTokenPost ' ][0 ])
166166 {
167- $ request = $ this ->realmsRealmProtocolOpenidConnectTokenPostRequest ($ realm , $ client_id , $ grant_type , $ username , $ password , $ refresh_token , $ contentType );
167+ $ request = $ this ->realmsRealmProtocolOpenidConnectTokenPostRequest ($ realm , $ username , $ password , $ client_id , $ grant_type , $ refresh_token , $ contentType );
168168
169169 try {
170170 $ options = $ this ->createHttpClientOption ();
@@ -351,19 +351,19 @@ public function realmsRealmProtocolOpenidConnectTokenPostWithHttpInfo($realm, $c
351351 * Oidc Login
352352 *
353353 * @param string $realm realm name (not id!) (required)
354- * @param string $client_id Client id (required)
355- * @param string $grant_type Grant Type (required)
356354 * @param string|null $username Username (optional)
357355 * @param string|null $password User Password (optional)
356+ * @param string|null $client_id Client id (optional)
357+ * @param string|null $grant_type Grant Type (optional)
358358 * @param string|null $refresh_token Refresh Token (optional)
359359 * @param string $contentType The value for the Content-Type header. Check self::contentTypes['realmsRealmProtocolOpenidConnectTokenPost'] to see the possible values for this operation
360360 *
361361 * @throws \InvalidArgumentException
362362 * @return \GuzzleHttp\Promise\PromiseInterface
363363 */
364- public function realmsRealmProtocolOpenidConnectTokenPostAsync ($ realm , $ client_id , $ grant_type , $ username = null , $ password = null , $ refresh_token = null , string $ contentType = self ::contentTypes['realmsRealmProtocolOpenidConnectTokenPost ' ][0 ])
364+ public function realmsRealmProtocolOpenidConnectTokenPostAsync ($ realm , $ username = null , $ password = null , $ client_id = null , $ grant_type = null , $ refresh_token = null , string $ contentType = self ::contentTypes['realmsRealmProtocolOpenidConnectTokenPost ' ][0 ])
365365 {
366- return $ this ->realmsRealmProtocolOpenidConnectTokenPostAsyncWithHttpInfo ($ realm , $ client_id , $ grant_type , $ username , $ password , $ refresh_token , $ contentType )
366+ return $ this ->realmsRealmProtocolOpenidConnectTokenPostAsyncWithHttpInfo ($ realm , $ username , $ password , $ client_id , $ grant_type , $ refresh_token , $ contentType )
367367 ->then (
368368 function ($ response ) {
369369 return $ response [0 ];
@@ -377,20 +377,20 @@ function ($response) {
377377 * Oidc Login
378378 *
379379 * @param string $realm realm name (not id!) (required)
380- * @param string $client_id Client id (required)
381- * @param string $grant_type Grant Type (required)
382380 * @param string|null $username Username (optional)
383381 * @param string|null $password User Password (optional)
382+ * @param string|null $client_id Client id (optional)
383+ * @param string|null $grant_type Grant Type (optional)
384384 * @param string|null $refresh_token Refresh Token (optional)
385385 * @param string $contentType The value for the Content-Type header. Check self::contentTypes['realmsRealmProtocolOpenidConnectTokenPost'] to see the possible values for this operation
386386 *
387387 * @throws \InvalidArgumentException
388388 * @return \GuzzleHttp\Promise\PromiseInterface
389389 */
390- public function realmsRealmProtocolOpenidConnectTokenPostAsyncWithHttpInfo ($ realm , $ client_id , $ grant_type , $ username = null , $ password = null , $ refresh_token = null , string $ contentType = self ::contentTypes['realmsRealmProtocolOpenidConnectTokenPost ' ][0 ])
390+ public function realmsRealmProtocolOpenidConnectTokenPostAsyncWithHttpInfo ($ realm , $ username = null , $ password = null , $ client_id = null , $ grant_type = null , $ refresh_token = null , string $ contentType = self ::contentTypes['realmsRealmProtocolOpenidConnectTokenPost ' ][0 ])
391391 {
392392 $ returnType = '\WebMI\KeycloakApiClient\CustomApi\Model\RealmsRealmProtocolOpenidConnectTokenPost200Response ' ;
393- $ request = $ this ->realmsRealmProtocolOpenidConnectTokenPostRequest ($ realm , $ client_id , $ grant_type , $ username , $ password , $ refresh_token , $ contentType );
393+ $ request = $ this ->realmsRealmProtocolOpenidConnectTokenPostRequest ($ realm , $ username , $ password , $ client_id , $ grant_type , $ refresh_token , $ contentType );
394394
395395 return $ this ->client
396396 ->sendAsync ($ request , $ this ->createHttpClientOption ())
@@ -432,17 +432,17 @@ function ($exception) {
432432 * Create request for operation 'realmsRealmProtocolOpenidConnectTokenPost'
433433 *
434434 * @param string $realm realm name (not id!) (required)
435- * @param string $client_id Client id (required)
436- * @param string $grant_type Grant Type (required)
437435 * @param string|null $username Username (optional)
438436 * @param string|null $password User Password (optional)
437+ * @param string|null $client_id Client id (optional)
438+ * @param string|null $grant_type Grant Type (optional)
439439 * @param string|null $refresh_token Refresh Token (optional)
440440 * @param string $contentType The value for the Content-Type header. Check self::contentTypes['realmsRealmProtocolOpenidConnectTokenPost'] to see the possible values for this operation
441441 *
442442 * @throws \InvalidArgumentException
443443 * @return \GuzzleHttp\Psr7\Request
444444 */
445- public function realmsRealmProtocolOpenidConnectTokenPostRequest ($ realm , $ client_id , $ grant_type , $ username = null , $ password = null , $ refresh_token = null , string $ contentType = self ::contentTypes['realmsRealmProtocolOpenidConnectTokenPost ' ][0 ])
445+ public function realmsRealmProtocolOpenidConnectTokenPostRequest ($ realm , $ username = null , $ password = null , $ client_id = null , $ grant_type = null , $ refresh_token = null , string $ contentType = self ::contentTypes['realmsRealmProtocolOpenidConnectTokenPost ' ][0 ])
446446 {
447447
448448 // verify the required parameter 'realm' is set
@@ -452,19 +452,7 @@ public function realmsRealmProtocolOpenidConnectTokenPostRequest($realm, $client
452452 );
453453 }
454454
455- // verify the required parameter 'client_id' is set
456- if ($ client_id === null || (is_array ($ client_id ) && count ($ client_id ) === 0 )) {
457- throw new \InvalidArgumentException (
458- 'Missing the required parameter $client_id when calling realmsRealmProtocolOpenidConnectTokenPost '
459- );
460- }
461455
462- // verify the required parameter 'grant_type' is set
463- if ($ grant_type === null || (is_array ($ grant_type ) && count ($ grant_type ) === 0 )) {
464- throw new \InvalidArgumentException (
465- 'Missing the required parameter $grant_type when calling realmsRealmProtocolOpenidConnectTokenPost '
466- );
467- }
468456
469457
470458
@@ -509,7 +497,6 @@ public function realmsRealmProtocolOpenidConnectTokenPostRequest($realm, $client
509497 $ formParams = array_merge ($ formParams , ObjectSerializer::toFormValue ('refresh_token ' , $ refresh_token ));
510498 }
511499
512- $ multipart = true ;
513500 $ headers = $ this ->headerSelector ->selectHeaders (
514501 ['application/json ' , ],
515502 $ contentType ,
0 commit comments