Bypass (Authenticator & Authorizor)
The bypass implementation, as its name suggests, allows both authentication and authorization to be bypassed. This is typically used for integration tests or for prototyping.
Maven pom.xml
Dependency Management
If your application inherits from the Apache Causeway starter app (org.apache.causeway.app:causeway-app-starter-parent
) then that will define the version automatically:
pom.xml
<parent>
<groupId>org.apache.causeway.app</groupId>
<artifactId>causeway-app-starter-parent</artifactId>
<version>2.0.0</version>
<relativePath/>
</parent>
Alternatively, import the core BOM. This is usually done in the top-level parent pom of your application:
pom.xml
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.apache.causeway.core</groupId>
<artifactId>causeway-core</artifactId>
<version>2.0.0</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>
Update AppManifest
In your application’s AppManifest
(top-level Spring @Configuration
used to bootstrap the app), import the
AppManifest.java
@Configuration
@Import({
...
CausewayModuleSecurityBypass.class,
...
})
public class AppManifest {
}
Make sure that no other CausewayModuleSecurityXxx
module is imported.