This is an automated email from the ASF dual-hosted git repository.
ahuber pushed a commit to branch jpa2-SNAPSHOT
in repository https://gitbox.apache.org/repos/asf/causeway-app-helloworld.git
The following commit(s) were added to refs/heads/jpa2-SNAPSHOT by this push:
new 4ee2225 fix for SimpleRealm setup
4ee2225 is described below
commit 4ee2225f21bfa1a6aff799dc70840d7dac964c2d
Author: Andi Huber <[email protected]>
AuthorDate: Thu Mar 21 13:59:56 2024 +0100
fix for SimpleRealm setup
---
src/main/java/domainapp/webapp/AppManifest.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/main/java/domainapp/webapp/AppManifest.java
b/src/main/java/domainapp/webapp/AppManifest.java
index 031ab2c..3365600 100644
--- a/src/main/java/domainapp/webapp/AppManifest.java
+++ b/src/main/java/domainapp/webapp/AppManifest.java
@@ -66,12 +66,12 @@ public class AppManifest {
? Grant.CHANGE
: Grant.NONE)
.addRole("default_role", id->
- id.getFullIdentityString().startsWith("causeway.applib")
- ||
id.getFullIdentityString().startsWith("causeway.security")
+
id.getLogicalType().getNamespace().startsWith("causeway.applib")
+ ||
id.getLogicalType().getNamespace().startsWith("causeway.security")
? Grant.CHANGE
: Grant.NONE)
.addRole("fixtures_role", id->
-
id.getFullIdentityString().startsWith("causeway.testing.fixtures")
+
id.getLogicalType().getNamespace().startsWith("causeway.testing.fixtures")
? Grant.CHANGE
: Grant.NONE)
.addUser("sven", hashedPass, List.of("admin_role"))