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 +
|
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)));
|
||||||
|
|
||||||
|
@ -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)));
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user