diff --git a/auth/src/main/java/com/alfresco/auth/DiscoveryService.kt b/auth/src/main/java/com/alfresco/auth/DiscoveryService.kt index 709147f..72d63a3 100644 --- a/auth/src/main/java/com/alfresco/auth/DiscoveryService.kt +++ b/auth/src/main/java/com/alfresco/auth/DiscoveryService.kt @@ -137,7 +137,7 @@ class DiscoveryService( */ fun contentServiceUrl( endpoint: String, - authType: AuthTypeProvider = AuthTypeProvider.NONE + authType: AuthTypeProvider = AuthTypeProvider.NONE, ): Uri = PkceAuthService.endpointWith(endpoint, authConfig) .buildUpon() diff --git a/auth/src/main/java/com/alfresco/auth/pkce/PkceAuthService.kt b/auth/src/main/java/com/alfresco/auth/pkce/PkceAuthService.kt index c31cf11..c98388c 100644 --- a/auth/src/main/java/com/alfresco/auth/pkce/PkceAuthService.kt +++ b/auth/src/main/java/com/alfresco/auth/pkce/PkceAuthService.kt @@ -163,11 +163,10 @@ internal class PkceAuthService(context: Context, authState: AuthState?, authConf authState.get().clientAuthentication } - suspendCancellableCoroutine { authService.performTokenRequest( authorizationResponse.createTokenExchangeRequest(), - clientAuth + clientAuth, ) { response: TokenResponse?, ex: AuthorizationException? -> authState.get().update(response, ex) @@ -257,8 +256,7 @@ internal class PkceAuthService(context: Context, authState: AuthState?, authConf if (authConfig.authType == AuthTypeProvider.NEW_IDP) { authConfig.scope.takeIf { it.isNotEmpty() }?.let { builder.setScope(it) } authConfig.additionalParams.takeIf { it.isNotEmpty() }?.let { builder.setAdditionalParameters(it) } - } - + } return builder.build() }