Issue
Thanks for reading my question. I am trying to build an OAuth2 client app (Authorization code grant type) integrating with DocuSign. I followed the documentation and the recommended quickstart way of getting started with the Spring Boot Java code, firstly I couldn't understand why there are 2 src folders in the produced project.
Other than this, the quickstart tool says to follow the README.md for further instructions but unfortunately, the project generated like above doesn't come with any README file. I followed the Github page of DocuSign java examples and tried to run the app in IntelliJ Ultimate but I am facing errors viz. "java: package com.docusign.common does not exist", "com.docusign.core.model.manifestModels does not exist" I tried to invalidate cache and re-build and re-import the dependencies multiple times but no help.
I am a bit perplexed by why there are some classes of the external src folder (like OSDetector etc) being used in the inner src folder, and is it really a Spring Boot project or Spring MVC or kind of in between?
I would like to add for any Developer Advocate reading from DocuSign, instead of loading the examples with a number of libraries and making them complex try to showcase examples (maybe a few) just with your library/ SDK and minimum other dependencies so as we can see your SDK in action in isolation. Definitely, we will add to it as we will build a proper integration.
Thanks again!! :)
EDIT - 10/04/22
As advised I tried to generate the project using quick-start with the extreme right OAuth grant type option (Multiple code examples, ACG, and JWT grant) the project is coming up with one main "src" folder and separate projects for ACG and JWT in folders named as "Quick_ACG" and "JWT Console App". I deleted the "Quick_ACG" and "JWT Console App" folders just to see if they are anywhere connected with the main app and as anticipated doesn't look like they are. After configuring and running the main project same is running fine, and I can use it as a starter code for prospective integration.
I tried to generate an authorization-code-grant flow project using quick-start, but I can't run the same, adding a picture depicting both scenarios here (ACG on left and full app on right).enter image description here
Rest I am still unclear why so many "src" folders are there as you can see in the above image for the ACG type project and here as well (full project), and moreover, classes from the inner "src" folder are referring to classes in outer src folder for example OSDetector
Solution
UPDATE 10/3/2022 - We have made a fix available, please try again and it should work properly.
We have identified a regression bug in the "Authorization code grant embedded signing example" (middle option) of the Java quickstart. You can try the right-most (full) option for now. We'll fix it soon. The full option includes all code examples as well as both Auth Code Grant and JWT so should be good for now.
Answered By - Inbar Gazit
Answer Checked By - Willingham (JavaFixing Volunteer)