Hi,
I'm new to GWT and am trying to set up container authentication. Can anyone give me an example of using the pom.xml to supply realm configuration to the jetty embedded in GWT Dev Mode?
Currently I get 'HTTP ERROR: 500 No realm' when I run gwt:run.
Plugin version: 2.4.0
The only
relevant post I could find was unanswered.
I have a public
learning project and I've got the
jetty only plugin working but I don't know how to do the same for GWT plugin.
Excerpt from web.xml:
...<security-constraint><web-resource-collection> <web-resource-name>everything</web-resource-name> <!-- NOTE: Mangle this to turn off security requirements --> <url-pattern>/*</url-pattern></web-resource-collection><auth-constraint> <role-name>superuser</role-name></auth-constraint><user-data-constraint> <transport-guarantee>CONFIDENTIAL</transport-guarantee></user-data-constraint></security-constraint><login-config><auth-method>BASIC</auth-method><realm-name>Login with bruce x2</realm-name></login-config>...Jetty (only) plugin config:
... </connector> </connectors> <userRealms> <userRealm implementation="org.mortbay.jetty.security.HashUserRealm"> <name>Login with bruce x2</name> <config>src/test/config/jetty-realm.properties</config> </userRealm> </userRealms></configuration><dependencies> <dependency>...jetty-realm.properties:
# User database in a filebruce: bruce,superuserAny help or suggestions would be appreciated.
Pete