mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-17 20:50:44 +00:00
Checkstyle
This commit is contained in:
@ -300,12 +300,12 @@ public class OAuth2AuthenticationModule implements QAuthenticationModuleInterfac
|
||||
}
|
||||
});
|
||||
|
||||
return authUrl +
|
||||
"?client_id=" + URLEncoder.encode(oauth2MetaData.getClientId(), StandardCharsets.UTF_8) +
|
||||
"&redirect_uri=" + URLEncoder.encode(originalUrl, StandardCharsets.UTF_8) +
|
||||
"&response_type=code" +
|
||||
"&scope=" + URLEncoder.encode("openid profile email", StandardCharsets.UTF_8) +
|
||||
"&state=" + URLEncoder.encode(state.getValue(), StandardCharsets.UTF_8);
|
||||
return authUrl
|
||||
+ "?client_id=" + URLEncoder.encode(oauth2MetaData.getClientId(), StandardCharsets.UTF_8)
|
||||
+ "&redirect_uri=" + URLEncoder.encode(originalUrl, StandardCharsets.UTF_8)
|
||||
+ "&response_type=code"
|
||||
+ "&scope=" + URLEncoder.encode("openid profile email", StandardCharsets.UTF_8)
|
||||
+ "&state=" + URLEncoder.encode(state.getValue(), StandardCharsets.UTF_8);
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
@ -338,7 +338,7 @@ public class OAuth2AuthenticationModule implements QAuthenticationModuleInterfac
|
||||
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)));
|
||||
|
||||
|
@ -39,7 +39,6 @@ public class SampleJavalinMetaDataProducer extends MetaDataProducer<QJavalinMeta
|
||||
|
||||
/*******************************************************************************
|
||||
** 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 - get mat-dash committed
|
||||
*******************************************************************************/
|
||||
@ -59,8 +58,7 @@ public class SampleJavalinMetaDataProducer extends MetaDataProducer<QJavalinMeta
|
||||
.withRouteProvider(new JavalinRouteProviderMetaData()
|
||||
.withRouteAuthenticator(new QCodeReference(SimpleRouteAuthenticator.class))
|
||||
.withHostedPath("/dynamic-site/<pagePath>")
|
||||
.withProcessName(DynamicSiteProcessMetaDataProducer.NAME))
|
||||
);
|
||||
.withProcessName(DynamicSiteProcessMetaDataProducer.NAME)));
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user