From 19e265130796454c8b2f778d5c58cb7316a86f08 Mon Sep 17 00:00:00 2001 From: Jean-Pierre Portier Date: Fri, 23 Feb 2024 16:25:25 +0100 Subject: [PATCH] PR's comment --- client/src/main/com/sinch/sdk/SinchClient.java | 11 +++-------- .../sinch/sdk/auth/adapters/BearerAuthManager.java | 2 +- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/client/src/main/com/sinch/sdk/SinchClient.java b/client/src/main/com/sinch/sdk/SinchClient.java index 25635757..d2631eae 100644 --- a/client/src/main/com/sinch/sdk/SinchClient.java +++ b/client/src/main/com/sinch/sdk/SinchClient.java @@ -10,7 +10,6 @@ import com.sinch.sdk.models.NumbersContext; import com.sinch.sdk.models.SMSRegion; import com.sinch.sdk.models.SmsContext; -import com.sinch.sdk.models.UnifiedCredentials; import com.sinch.sdk.models.VerificationContext; import com.sinch.sdk.models.VoiceContext; import com.sinch.sdk.models.VoiceRegion; @@ -89,13 +88,9 @@ public SinchClient(Configuration configuration) { versionProperties = handlePropertiesFile(VERSION_PROPERTIES_FILE_NAME); LOGGER.fine( String.format( - "%s (%s) started with projectId '%s'", + "%s (%s) started", versionProperties.getProperty(PROJECT_NAME_KEY), - versionProperties.getProperty(PROJECT_VERSION_KEY), - this.configuration - .getUnifiedCredentials() - .map(UnifiedCredentials::getProjectId) - .orElse(""))); + versionProperties.getProperty(PROJECT_VERSION_KEY))); } private void handleDefaultNumbersSettings( @@ -116,7 +111,7 @@ private void handleDefaultSmsSettings( SMSRegion smsRegion = configuration.getSmsContext().map(SmsContext::getSmsRegion).orElse(null); - // service plan ID activated: use dedicate server + // service plan ID activated: use dedicated server String serverKey = configuration .getSmsServicePlanCredentials() diff --git a/client/src/main/com/sinch/sdk/auth/adapters/BearerAuthManager.java b/client/src/main/com/sinch/sdk/auth/adapters/BearerAuthManager.java index a5065884..67299a29 100644 --- a/client/src/main/com/sinch/sdk/auth/adapters/BearerAuthManager.java +++ b/client/src/main/com/sinch/sdk/auth/adapters/BearerAuthManager.java @@ -19,7 +19,7 @@ public BearerAuthManager(String token) { } public String getSchema() { - return SCHEMA_KEYWORD_BASIC; + return SCHEMA_KEYWORD_BEARER; } @Override