From 5293d9cf199a09b71582687b6f78d8b33b0f376f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0tefan=20Ma=C5=A1ek?= Date: Tue, 19 Sep 2023 10:59:03 +0200 Subject: [PATCH] remove commented code, fill repo readme --- README.md | 8 ++++---- .../adobe/esign/connector/service/AdminSetupService.java | 7 +------ 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 0f94020..e9f3776 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ -# MY-PRODUCT-NAME +# Adobe Sign Connector -[![CI Build](https://github.com/axonivy-market/REPO-NAME/actions/workflows/ci.yml/badge.svg)](https://github.com/axonivy-market/REPO-NAME/actions/workflows/ci.yml) +[![CI Build](https://github.com/axonivy-market/adobesign-connector/actions/workflows/ci.yml/badge.svg)](https://github.com/axonivy-market/adobesign-connector/actions/workflows/ci.yml) -"YOUR SHORT DESCRIPTION GOES HERE" +The Adobe Sign Connector simplifies the authentication process and enables easy integration and use of Adobe Sign services for electronical signing of documents. -Read our [documentation](MY-PRODUCT-NAME-product/README.md). +Read our [documentation](adobesign-connector-product/README.md). diff --git a/adobe-esign-connector/src/com/axonivy/connector/adobe/esign/connector/service/AdminSetupService.java b/adobe-esign-connector/src/com/axonivy/connector/adobe/esign/connector/service/AdminSetupService.java index 033efcc..fddf322 100644 --- a/adobe-esign-connector/src/com/axonivy/connector/adobe/esign/connector/service/AdminSetupService.java +++ b/adobe-esign-connector/src/com/axonivy/connector/adobe/esign/connector/service/AdminSetupService.java @@ -110,12 +110,7 @@ public static void getNewAccessToken(String authCode) throws URISyntaxException createRedirectUrl()); WebTarget target = client.target(tokenBaseUri); Response response = target.request().post(Entity.form(authRequest.paramsMap())); -// else { -// tokenBaseUri.path(OAuth2UriProperty.REFRESH_RELATIVE_PATH); -// RefreshTokenRequest authRequest = new RefreshTokenRequest(refreshToken.refreshToken(), clientId, clientSecret); -// WebTarget target = client.target(tokenBaseUri); -// response = target.request().post(Entity.form(authRequest.paramsMap())); -// } + if (response.getStatusInfo().getFamily() == Family.SUCCESSFUL) { GenericType> map = new GenericType<>(Map.class); // store new token