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