| 260 | | 5. Build the WAR file by simply running 'ant war'. |
| | 260 | 5. Remove the security-constraint, login-config, and security-role elements from the file webapp/WEB-INF/web.core.xml. |
| | 261 | |
| | 262 | {{{ |
| | 263 | <security-constraint> |
| | 264 | <web-resource-collection> |
| | 265 | <web-resource-name>Tomcat login</web-resource-name> |
| | 266 | <url-pattern>/login.do</url-pattern> |
| | 267 | </web-resource-collection> |
| | 268 | <auth-constraint> |
| | 269 | <!-- NOTE: This role is not present in the default users file --> |
| | 270 | <role-name>@grouper.role@</role-name> |
| | 271 | </auth-constraint> |
| | 272 | </security-constraint> |
| | 273 | |
| | 274 | <!-- Define the Login Configuration for this Application --> |
| | 275 | <login-config> |
| | 276 | <auth-method>BASIC</auth-method> |
| | 277 | <realm-name>Grouper Application</realm-name> |
| | 278 | </login-config> |
| | 279 | |
| | 280 | <!-- Security roles referenced by this web application --> |
| | 281 | <security-role> |
| | 282 | <description> |
| | 283 | The role that is required to log in to the Grouper UI |
| | 284 | </description> |
| | 285 | <role-name>@grouper.role@</role-name> |
| | 286 | </security-role> |
| | 287 | }}} |
| | 288 | |
| | 289 | 6. Remove the security-constraint elements from the file webapp/WEB-INF/web.ajax.xml. |
| | 290 | |
| | 291 | {{{ |
| | 292 | <security-constraint> |
| | 293 | <web-resource-collection> |
| | 294 | <web-resource-name>UI</web-resource-name> |
| | 295 | <url-pattern>/grouperUi/app/*</url-pattern> |
| | 296 | </web-resource-collection> |
| | 297 | <auth-constraint> |
| | 298 | <role-name>*</role-name> |
| | 299 | </auth-constraint> |
| | 300 | </security-constraint> |
| | 301 | |
| | 302 | <security-constraint> |
| | 303 | <web-resource-collection> |
| | 304 | <web-resource-name>UI</web-resource-name> |
| | 305 | <url-pattern>/grouperUi/appHtml/*</url-pattern> |
| | 306 | </web-resource-collection> |
| | 307 | <auth-constraint> |
| | 308 | <role-name>*</role-name> |
| | 309 | </auth-constraint> |
| | 310 | </security-constraint> |
| | 311 | |
| | 312 | <security-constraint> |
| | 313 | <web-resource-collection> |
| | 314 | <web-resource-name>UI</web-resource-name> |
| | 315 | <url-pattern>/grouperExternal/app/*</url-pattern> |
| | 316 | </web-resource-collection> |
| | 317 | <auth-constraint> |
| | 318 | <role-name>*</role-name> |
| | 319 | </auth-constraint> |
| | 320 | </security-constraint> |
| | 321 | |
| | 322 | <security-constraint> |
| | 323 | <web-resource-collection> |
| | 324 | <web-resource-name>UI</web-resource-name> |
| | 325 | <url-pattern>/grouperExternal/appHtml/*</url-pattern> |
| | 326 | </web-resource-collection> |
| | 327 | <auth-constraint> |
| | 328 | <role-name>*</role-name> |
| | 329 | </auth-constraint> |
| | 330 | </security-constraint> |
| | 331 | }}} |
| | 332 | |
| | 333 | 7. Build the WAR file by simply running 'ant war'. |