@@ -320,20 +320,28 @@ export class AdminAuthenticationApiRequestFactory extends BaseAPIRequestFactory
320
320
321
321
/**
322
322
* The endpoint verifies the token generated by OAuth provider and retrieves a corresponding player.
323
- * Retrieve player by oauth token.
324
- * @param authenticateOAuthRequest
323
+ * Retrieve player by token.
324
+ * @param provider OAuth provider
325
+ * @param oAuthRequest
325
326
*/
326
- public async verifyOAuth ( authenticateOAuthRequest : AuthenticateOAuthRequest , _options ?: Configuration ) : Promise < RequestContext > {
327
+ public async verifyOAuth ( provider : OAuthProvider , oAuthRequest : OAuthRequest , _options ?: Configuration ) : Promise < RequestContext > {
327
328
let _config = _options || this . configuration ;
328
329
329
- // verify required parameter 'authenticateOAuthRequest' is not null or undefined
330
- if ( authenticateOAuthRequest === null || authenticateOAuthRequest === undefined ) {
331
- throw new RequiredError ( "AdminAuthenticationApi" , "verifyOAuth" , "authenticateOAuthRequest" ) ;
330
+ // verify required parameter 'provider' is not null or undefined
331
+ if ( provider === null || provider === undefined ) {
332
+ throw new RequiredError ( "AdminAuthenticationApi" , "verifyOAuth" , "provider" ) ;
333
+ }
334
+
335
+
336
+ // verify required parameter 'oAuthRequest' is not null or undefined
337
+ if ( oAuthRequest === null || oAuthRequest === undefined ) {
338
+ throw new RequiredError ( "AdminAuthenticationApi" , "verifyOAuth" , "oAuthRequest" ) ;
332
339
}
333
340
334
341
335
342
// Path Params
336
- const localVarPath = '/iam/v1/oauth/verify' ;
343
+ const localVarPath = '/iam/v1/oauth/{provider}/verify'
344
+ . replace ( '{' + 'provider' + '}' , encodeURIComponent ( String ( provider ) ) ) ;
337
345
338
346
// Make Request Context
339
347
const requestContext = _config . baseServer . makeRequestContext ( localVarPath , HttpMethod . POST ) ;
@@ -346,7 +354,7 @@ export class AdminAuthenticationApiRequestFactory extends BaseAPIRequestFactory
346
354
] ) ;
347
355
requestContext . setHeaderParam ( "Content-Type" , contentType ) ;
348
356
const serializedBody = ObjectSerializer . stringify (
349
- ObjectSerializer . serialize ( authenticateOAuthRequest , "AuthenticateOAuthRequest " , "" ) ,
357
+ ObjectSerializer . serialize ( oAuthRequest , "OAuthRequest " , "" ) ,
350
358
contentType
351
359
) ;
352
360
requestContext . setBody ( serializedBody ) ;
@@ -368,28 +376,20 @@ export class AdminAuthenticationApiRequestFactory extends BaseAPIRequestFactory
368
376
369
377
/**
370
378
* The endpoint verifies the token generated by OAuth provider and retrieves a corresponding player.
371
- * Retrieve player by token.
372
- * @param provider OAuth provider
373
- * @param oAuthRequest
379
+ * Retrieve player by oauth token.
380
+ * @param authenticateOAuthRequest
374
381
*/
375
- public async verifyOAuthToken ( provider : OAuthProvider , oAuthRequest : OAuthRequest , _options ?: Configuration ) : Promise < RequestContext > {
382
+ public async verifyOAuthToken ( authenticateOAuthRequest : AuthenticateOAuthRequest , _options ?: Configuration ) : Promise < RequestContext > {
376
383
let _config = _options || this . configuration ;
377
384
378
- // verify required parameter 'provider' is not null or undefined
379
- if ( provider === null || provider === undefined ) {
380
- throw new RequiredError ( "AdminAuthenticationApi" , "verifyOAuthToken" , "provider" ) ;
381
- }
382
-
383
-
384
- // verify required parameter 'oAuthRequest' is not null or undefined
385
- if ( oAuthRequest === null || oAuthRequest === undefined ) {
386
- throw new RequiredError ( "AdminAuthenticationApi" , "verifyOAuthToken" , "oAuthRequest" ) ;
385
+ // verify required parameter 'authenticateOAuthRequest' is not null or undefined
386
+ if ( authenticateOAuthRequest === null || authenticateOAuthRequest === undefined ) {
387
+ throw new RequiredError ( "AdminAuthenticationApi" , "verifyOAuthToken" , "authenticateOAuthRequest" ) ;
387
388
}
388
389
389
390
390
391
// Path Params
391
- const localVarPath = '/iam/v1/oauth/{provider}/verify'
392
- . replace ( '{' + 'provider' + '}' , encodeURIComponent ( String ( provider ) ) ) ;
392
+ const localVarPath = '/iam/v1/oauth/verify' ;
393
393
394
394
// Make Request Context
395
395
const requestContext = _config . baseServer . makeRequestContext ( localVarPath , HttpMethod . POST ) ;
@@ -402,7 +402,7 @@ export class AdminAuthenticationApiRequestFactory extends BaseAPIRequestFactory
402
402
] ) ;
403
403
requestContext . setHeaderParam ( "Content-Type" , contentType ) ;
404
404
const serializedBody = ObjectSerializer . stringify (
405
- ObjectSerializer . serialize ( oAuthRequest , "OAuthRequest " , "" ) ,
405
+ ObjectSerializer . serialize ( authenticateOAuthRequest , "AuthenticateOAuthRequest " , "" ) ,
406
406
contentType
407
407
) ;
408
408
requestContext . setBody ( serializedBody ) ;
0 commit comments