@@ -95,7 +95,7 @@ public String index(ModelMap model, HttpServletResponse response) throws Excepti
9595 }
9696
9797 if (config .getQuickstart ().equals ("true" ) && config .getSelectedApiIndex ().equals (ApiIndex .ESIGNATURE ) &&
98- !(SecurityContextHolder .getContext ().getAuthentication () instanceof OAuth2AuthenticationToken )) {
98+ !(SecurityContextHolder .getContext ().getAuthentication () instanceof OAuth2AuthenticationToken )) {
9999 String site = ApiIndex .ESIGNATURE .getPathOfFirstExample ();
100100 response .setStatus (response .SC_MOVED_TEMPORARILY );
101101 response .setHeader (LOCATION_HEADER , site );
@@ -114,7 +114,7 @@ public String index(ModelMap model, HttpServletResponse response) throws Excepti
114114
115115 @ GetMapping (path = "/ds/mustAuthenticate" )
116116 public ModelAndView mustAuthenticateController (ModelMap model , HttpServletRequest req , HttpServletResponse resp )
117- throws IOException {
117+ throws IOException {
118118 model .addAttribute (LAUNCHER_TEXTS , config .getCodeExamplesText ().SupportingTexts );
119119 model .addAttribute (ATTR_TITLE , config .getCodeExamplesText ().SupportingTexts .LoginPage .LoginButton );
120120
@@ -127,8 +127,8 @@ public ModelAndView mustAuthenticateController(ModelMap model, HttpServletReques
127127 return new ModelAndView (new JWTAuthenticationMethod ().loginUsingJWT (config , session , redirectURL ));
128128 }
129129
130- boolean isRedirectToMonitor = redirectURL .toLowerCase ().contains ("/m" )
131- && !redirectURL .toLowerCase ().contains ("/mae" );
130+ boolean isRedirectToMonitor = redirectURL .toLowerCase ().contains ("/m" ) &&
131+ !redirectURL .toLowerCase ().contains ("/mae" );
132132 if (session .isRefreshToken () || config .getQuickstart ().equals ("true" )) {
133133 config .setQuickstart ("false" );
134134
@@ -153,7 +153,7 @@ private ModelAndView checkForMonitorRedirects(String redirectURL) {
153153
154154 @ GetMapping ("/pkce" )
155155 public RedirectView pkce (String code , String state , HttpServletRequest req , HttpServletResponse resp )
156- throws Exception {
156+ throws Exception {
157157 String redirectURL = getRedirectURLForJWTAuthentication (req , resp );
158158 RedirectView redirect ;
159159 try {
@@ -167,16 +167,16 @@ public RedirectView pkce(String code, String state, HttpServletRequest req, Http
167167 }
168168
169169 @ PostMapping ("/ds/authenticate" )
170- public RedirectView authenticate (ModelMap model , @ RequestBody MultiValueMap <String , String > formParams ,
171- HttpServletRequest req , HttpServletResponse resp ) throws Exception {
170+ public RedirectView authenticate (ModelMap model , @ RequestBody MultiValueMap <String , String > formParams ,
171+ HttpServletRequest req , HttpServletResponse resp ) throws Exception {
172172 if (!formParams .containsKey ("selectAuthType" )) {
173173 model .addAttribute ("message" , "Select option with selectAuthType name must be provided." );
174174 return new RedirectView ("pages/error" );
175175 }
176176
177177 String redirectURL = getRedirectURLForJWTAuthentication (req , resp );
178178
179- List <String > selectAuthTypeObject = formParams .get ("selectAuthType" );
179+ List <String > selectAuthTypeObject = formParams .get ("selectAuthType" );
180180 AuthType authTypeSelected = AuthType .valueOf (selectAuthTypeObject .get (0 ));
181181
182182 if (authTypeSelected .equals (AuthType .JWT )) {
@@ -196,7 +196,7 @@ private String getRedirectURLForJWTAuthentication(HttpServletRequest req, HttpSe
196196 SavedRequest savedRequest = requestCache .getRequest (req , resp );
197197
198198 String [] examplesCodes = new String [] {
199- ApiIndex .CLICK .getExamplesPathCode (),
199+ ApiIndex .CLICK .getExamplesPathCode (),
200200 ApiIndex .ESIGNATURE .getExamplesPathCode (),
201201 ApiIndex .MONITOR .getExamplesPathCode (),
202202 ApiIndex .ADMIN .getExamplesPathCode (),
@@ -209,7 +209,7 @@ private String getRedirectURLForJWTAuthentication(HttpServletRequest req, HttpSe
209209
210210 if (indexOfExampleCodeInRedirect != -1 ) {
211211 Boolean hasNumbers = savedRequest .getRedirectUrl ().substring (indexOfExampleCodeInRedirect )
212- .matches (".*\\ d.*" );
212+ .matches (".*\\ d.*" );
213213
214214 return "GET" .equals (savedRequest .getMethod ()) && hasNumbers ? savedRequest .getRedirectUrl () : "/" ;
215215 }
@@ -220,8 +220,8 @@ private String getRedirectURLForJWTAuthentication(HttpServletRequest req, HttpSe
220220
221221 @ GetMapping (path = "/ds-return" )
222222 public String returnController (@ RequestParam (value = ATTR_STATE , required = false ) String state ,
223- @ RequestParam (value = ATTR_EVENT , required = false ) String event ,
224- @ RequestParam (required = false ) String envelopeId , ModelMap model ) {
223+ @ RequestParam (value = ATTR_EVENT , required = false ) String event ,
224+ @ RequestParam (required = false ) String envelopeId , ModelMap model ) {
225225 model .addAttribute (LAUNCHER_TEXTS , config .getCodeExamplesText ().SupportingTexts );
226226 model .addAttribute (ATTR_TITLE , "Return from DocuSign" );
227227 model .addAttribute (ATTR_EVENT , event );
@@ -244,4 +244,4 @@ private String getLoginPath(AuthType authTypeSelected) {
244244 }
245245 return loginPath ;
246246 }
247- }
247+ }
0 commit comments