Checkstyle

This commit is contained in:
2025-03-24 19:33:29 -05:00
parent 410175a133
commit a95650a0ce
2 changed files with 8 additions and 10 deletions

View File

@ -300,12 +300,12 @@ public class OAuth2AuthenticationModule implements QAuthenticationModuleInterfac
} }
}); });
return authUrl + return authUrl
"?client_id=" + URLEncoder.encode(oauth2MetaData.getClientId(), StandardCharsets.UTF_8) + + "?client_id=" + URLEncoder.encode(oauth2MetaData.getClientId(), StandardCharsets.UTF_8)
"&redirect_uri=" + URLEncoder.encode(originalUrl, StandardCharsets.UTF_8) + + "&redirect_uri=" + URLEncoder.encode(originalUrl, StandardCharsets.UTF_8)
"&response_type=code" + + "&response_type=code"
"&scope=" + URLEncoder.encode("openid profile email", StandardCharsets.UTF_8) + + "&scope=" + URLEncoder.encode("openid profile email", StandardCharsets.UTF_8)
"&state=" + URLEncoder.encode(state.getValue(), StandardCharsets.UTF_8); + "&state=" + URLEncoder.encode(state.getValue(), StandardCharsets.UTF_8);
} }
catch(Exception e) catch(Exception e)
{ {
@ -338,7 +338,7 @@ public class OAuth2AuthenticationModule implements QAuthenticationModuleInterfac
user.setFullName(name); user.setFullName(name);
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
// todo - this needs to be much better standardized w/ fe // // todo wip - this needs to be much better standardized w/ fe //
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
session.withValueForFrontend("user", new HashMap<>(Map.of("name", name, "email", email))); session.withValueForFrontend("user", new HashMap<>(Map.of("name", name, "email", email)));

View File

@ -39,7 +39,6 @@ public class SampleJavalinMetaDataProducer extends MetaDataProducer<QJavalinMeta
/******************************************************************************* /*******************************************************************************
** todo wip - test sub-directories of each other ** todo wip - test sub-directories of each other
** todo wip - another redirect to get rid of the code & state from url
** todo wip - allow mat-dash to be served at a different path ** todo wip - allow mat-dash to be served at a different path
** todo wip - get mat-dash committed ** todo wip - get mat-dash committed
*******************************************************************************/ *******************************************************************************/
@ -59,8 +58,7 @@ public class SampleJavalinMetaDataProducer extends MetaDataProducer<QJavalinMeta
.withRouteProvider(new JavalinRouteProviderMetaData() .withRouteProvider(new JavalinRouteProviderMetaData()
.withRouteAuthenticator(new QCodeReference(SimpleRouteAuthenticator.class)) .withRouteAuthenticator(new QCodeReference(SimpleRouteAuthenticator.class))
.withHostedPath("/dynamic-site/<pagePath>") .withHostedPath("/dynamic-site/<pagePath>")
.withProcessName(DynamicSiteProcessMetaDataProducer.NAME)) .withProcessName(DynamicSiteProcessMetaDataProducer.NAME)));
);
} }
} }