@@ -494,6 +494,7 @@ class OAuth2API(basePath: kotlin.String = defaultBasePath, client: OkHttpClient
494
494
* @param codeChallengeMethod Code challenge method.
495
495
* @param connectionType connection type; google, github, apple, or passage to login with
496
496
* @param state The state to pass through to the redirect URI. (optional)
497
+ * @param loginHint Hint to the Authorization Server about the login identifier the end-user might use to log in. (optional)
497
498
* @return void
498
499
* @throws IllegalStateException If the request is not correctly configured
499
500
* @throws IOException Rethrows the OkHttp execute method exception
@@ -502,8 +503,8 @@ class OAuth2API(basePath: kotlin.String = defaultBasePath, client: OkHttpClient
502
503
* @throws ServerException If the API returns a server error response
503
504
*/
504
505
@Throws(IllegalStateException ::class , IOException ::class , UnsupportedOperationException ::class , ClientException ::class , ServerException ::class )
505
- suspend fun getAuthorize (appId : kotlin.String , redirectUri : kotlin.String , codeChallenge : kotlin.String , codeChallengeMethod : kotlin.String , connectionType : ConnectionType_getAuthorize , state : kotlin.String? = null) : Unit = withContext(Dispatchers .IO ) {
506
- val localVarResponse = getAuthorizeWithHttpInfo(appId = appId, redirectUri = redirectUri, codeChallenge = codeChallenge, codeChallengeMethod = codeChallengeMethod, connectionType = connectionType, state = state)
506
+ suspend fun getAuthorize (appId : kotlin.String , redirectUri : kotlin.String , codeChallenge : kotlin.String , codeChallengeMethod : kotlin.String , connectionType : ConnectionType_getAuthorize , state : kotlin.String? = null, loginHint : kotlin. String? = null ) : Unit = withContext(Dispatchers .IO ) {
507
+ val localVarResponse = getAuthorizeWithHttpInfo(appId = appId, redirectUri = redirectUri, codeChallenge = codeChallenge, codeChallengeMethod = codeChallengeMethod, connectionType = connectionType, state = state, loginHint = loginHint )
507
508
508
509
return @withContext when (localVarResponse.responseType) {
509
510
ResponseType .Success -> Unit
@@ -529,13 +530,14 @@ class OAuth2API(basePath: kotlin.String = defaultBasePath, client: OkHttpClient
529
530
* @param codeChallengeMethod Code challenge method.
530
531
* @param connectionType connection type; google, github, apple, or passage to login with
531
532
* @param state The state to pass through to the redirect URI. (optional)
533
+ * @param loginHint Hint to the Authorization Server about the login identifier the end-user might use to log in. (optional)
532
534
* @return ApiResponse<Unit?>
533
535
* @throws IllegalStateException If the request is not correctly configured
534
536
* @throws IOException Rethrows the OkHttp execute method exception
535
537
*/
536
538
@Throws(IllegalStateException ::class , IOException ::class )
537
- suspend fun getAuthorizeWithHttpInfo (appId : kotlin.String , redirectUri : kotlin.String , codeChallenge : kotlin.String , codeChallengeMethod : kotlin.String , connectionType : ConnectionType_getAuthorize , state : kotlin.String? ) : ApiResponse <Unit ?> = withContext(Dispatchers .IO ) {
538
- val localVariableConfig = getAuthorizeRequestConfig(appId = appId, redirectUri = redirectUri, codeChallenge = codeChallenge, codeChallengeMethod = codeChallengeMethod, connectionType = connectionType, state = state)
539
+ suspend fun getAuthorizeWithHttpInfo (appId : kotlin.String , redirectUri : kotlin.String , codeChallenge : kotlin.String , codeChallengeMethod : kotlin.String , connectionType : ConnectionType_getAuthorize , state : kotlin.String? , loginHint : kotlin. String? ) : ApiResponse <Unit ?> = withContext(Dispatchers .IO ) {
540
+ val localVariableConfig = getAuthorizeRequestConfig(appId = appId, redirectUri = redirectUri, codeChallenge = codeChallenge, codeChallengeMethod = codeChallengeMethod, connectionType = connectionType, state = state, loginHint = loginHint )
539
541
540
542
return @withContext request<Unit , Unit >(
541
543
localVariableConfig
@@ -551,16 +553,20 @@ class OAuth2API(basePath: kotlin.String = defaultBasePath, client: OkHttpClient
551
553
* @param codeChallengeMethod Code challenge method.
552
554
* @param connectionType connection type; google, github, apple, or passage to login with
553
555
* @param state The state to pass through to the redirect URI. (optional)
556
+ * @param loginHint Hint to the Authorization Server about the login identifier the end-user might use to log in. (optional)
554
557
* @return RequestConfig
555
558
*/
556
- fun getAuthorizeRequestConfig (appId : kotlin.String , redirectUri : kotlin.String , codeChallenge : kotlin.String , codeChallengeMethod : kotlin.String , connectionType : ConnectionType_getAuthorize , state : kotlin.String? ) : RequestConfig <Unit > {
559
+ fun getAuthorizeRequestConfig (appId : kotlin.String , redirectUri : kotlin.String , codeChallenge : kotlin.String , codeChallengeMethod : kotlin.String , connectionType : ConnectionType_getAuthorize , state : kotlin.String? , loginHint : kotlin. String? ) : RequestConfig <Unit > {
557
560
val localVariableBody = null
558
561
val localVariableQuery: MultiValueMap = mutableMapOf< kotlin.String , kotlin.collections.List < kotlin.String >> ()
559
562
.apply {
560
563
put(" redirect_uri" , listOf (redirectUri.toString()))
561
564
if (state != null ) {
562
565
put(" state" , listOf (state.toString()))
563
566
}
567
+ if (loginHint != null ) {
568
+ put(" login_hint" , listOf (loginHint.toString()))
569
+ }
564
570
put(" code_challenge" , listOf (codeChallenge.toString()))
565
571
put(" code_challenge_method" , listOf (codeChallengeMethod.toString()))
566
572
put(" connection_type" , listOf (connectionType.toString()))
0 commit comments