Skip to content

Commit

Permalink
Fix to #42
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacharyKlein authored and JasonTypesCodes committed May 20, 2020
1 parent 4db4415 commit 7814baf
Showing 1 changed file with 21 additions and 15 deletions.
36 changes: 21 additions & 15 deletions generators/server/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -433,11 +433,6 @@ const serverFiles = {
{
path: SERVER_MAIN_SRC_DIR,
templates: [
{
file: 'package/security/ApiLogoutController.java',
renameTo: generator => `${generator.javaDir}security/ApiLogoutController.java`,
useBluePrint: true
},
{
file: 'package/security/AuthoritiesConstants.java',
renameTo: generator => `${generator.javaDir}security/AuthoritiesConstants.java`,
Expand All @@ -453,16 +448,6 @@ const serverFiles = {
renameTo: generator => `${generator.javaDir}security/DatabaseAuthenticationProvider.java`,
useBluePrint: true
},
{
file: 'package/security/JHipsterOpenIdUserDetailsMapper.java',
renameTo: generator => `${generator.javaDir}security/JHipsterOpenIdUserDetailsMapper.java`,
useBluePrint: true
},
{
file: 'package/security/KeycloakEndSessionEndpoint.java',
renameTo: generator => `${generator.javaDir}security/KeycloakEndSessionEndpoint.java`,
useBluePrint: true
},
{
file: 'package/security/Logout.java',
renameTo: generator => `${generator.javaDir}security/Logout.java`,
Expand All @@ -489,6 +474,27 @@ const serverFiles = {
useBluePrint: true
}
]
},
{
condition: generator => generator.authenticationType === 'oauth2',
path: SERVER_MAIN_SRC_DIR,
templates: [
{
file: 'package/security/ApiLogoutController.java',
renameTo: generator => `${generator.javaDir}security/ApiLogoutController.java`,
useBluePrint: true
},
{
file: 'package/security/JHipsterOpenIdUserDetailsMapper.java',
renameTo: generator => `${generator.javaDir}security/JHipsterOpenIdUserDetailsMapper.java`,
useBluePrint: true
},
{
file: 'package/security/KeycloakEndSessionEndpoint.java',
renameTo: generator => `${generator.javaDir}security/KeycloakEndSessionEndpoint.java`,
useBluePrint: true
}
]
}
],
serverJavaService: [
Expand Down

0 comments on commit 7814baf

Please sign in to comment.