From 765157016c73cf58082bb288bcfd3898bbd5f927 Mon Sep 17 00:00:00 2001 From: tvallin Date: Fri, 10 Nov 2023 10:18:59 +0100 Subject: [PATCH] remove main security main class + rename google index.html Signed-off-by: tvallin --- .../common/files/application.abac.yaml | 34 -- .../src/main/archetype/common/security.xml | 3 - .../mp/custom/files/application.abac.yaml | 3 + .../mp/custom/files/application.oidc.yaml | 32 +- .../archetype/mp/custom/security-outputs.xml | 10 + .../main/archetype/se/common/common-se.xml | 7 + .../java/__pkg__/GoogleMain.java.mustache | 76 ---- .../__pkg__/OutboundOverrideJwt.java.mustache | 97 ------ .../java/__pkg__/SignatureMain.java.mustache | 218 ------------ .../{index-google.html => google-login.html} | 0 .../java/__pkg__/GoogleMainTest.java.mustache | 44 --- .../archetype/se/custom/security-outputs.xml | 324 ++++++++++++++++-- 12 files changed, 327 insertions(+), 521 deletions(-) delete mode 100644 archetypes/helidon/src/main/archetype/common/files/application.abac.yaml create mode 100644 archetypes/helidon/src/main/archetype/mp/custom/files/application.abac.yaml delete mode 100644 archetypes/helidon/src/main/archetype/se/custom/files/src/main/java/__pkg__/GoogleMain.java.mustache delete mode 100644 archetypes/helidon/src/main/archetype/se/custom/files/src/main/java/__pkg__/OutboundOverrideJwt.java.mustache delete mode 100644 archetypes/helidon/src/main/archetype/se/custom/files/src/main/java/__pkg__/SignatureMain.java.mustache rename archetypes/helidon/src/main/archetype/se/custom/files/src/main/resources/WEB/{index-google.html => google-login.html} (100%) delete mode 100644 archetypes/helidon/src/main/archetype/se/custom/files/src/test/java/__pkg__/GoogleMainTest.java.mustache diff --git a/archetypes/helidon/src/main/archetype/common/files/application.abac.yaml b/archetypes/helidon/src/main/archetype/common/files/application.abac.yaml deleted file mode 100644 index 432b05d3d9f..00000000000 --- a/archetypes/helidon/src/main/archetype/common/files/application.abac.yaml +++ /dev/null @@ -1,34 +0,0 @@ - - abac: - # prepares environment - # executes attribute validations - # validates that attributes were processed - # grants/denies access to resource - # - #### - # Combinations: - # # Will fail if any attribute is not validated and if any has failed validation - # fail-on-unvalidated: true - # fail-if-none-validated: true - # - # # Will fail if there is one or more attributes present and NONE of them is validated or if any has failed validation - # # Will NOT fail if there is at least one validated attribute and any number of not validated attributes (and NONE failed) - # fail-on-unvalidated: false - # fail-if-none-validated: true - # - # # Will fail if there is any attribute that failed validation - # # Will NOT fail if there are no failed validation or if there are NONE validated - # fail-on-unvalidated: false - # fail-if-none-validated: false - #### - # fail if an attribute was not validated (e.g. we do not know, whether it is valid or not) - # defaults to true - fail-on-unvalidated: true - # fail if none of the attributes were validated - # defaults to true - fail-if-none-validated: true -# policy-validator: -# validators: -# - class: "io.helidon.security.abac.policy.DefaultPolicyValidator" -# my-custom-policy-engine: -# some-key: "some value" -# another-key: "another value" diff --git a/archetypes/helidon/src/main/archetype/common/security.xml b/archetypes/helidon/src/main/archetype/common/security.xml index 232967c26a9..24eadb99f62 100644 --- a/archetypes/helidon/src/main/archetype/common/security.xml +++ b/archetypes/helidon/src/main/archetype/common/security.xml @@ -84,9 +84,6 @@