LDSTechForumProjects

WAM Integration - Part 1

This training is meant to be a comprehensive introduction to the Java Stack's integration with WAM. It will cover authorization with Spring Security and WAM, as well as the inter-operation of both.

Prerequisites

Slide Deck

Media:WAM_Integration_Training.pptx

Section 1

Get Adobe Flash player

Lab 1

Objectives

Steps

  • Download and install the following application: Media:wam-lab1.zip‎
    • Unzip the file into your workspace
    • In the LDSTech IDE go to File -> Import... -> Maven (expand) -> Existing Maven Projects -> Next
    • Browse to the unzipped project and press Finish
    • Start the automatically generated (if using LdsTech IDE) server
    • Test that the application runs without error - http://localhost: 8180/wam-lab1
  • Add the necessary dependency to your pom.xml
  • Configure the WamContextFilter
  • Start the Wamulator
  • Add the following import to the index.jsp page - <%@ page import="org.lds.stack.wam.*" %>
    • Access the lds account id from the LdsAccountDetails object of the WamContextHolder and print it out on the page
  • For extra credit - make the headers appear in the logs

Lab 1 Solution

The lab is exactly the same as the last demo in the presentation, so please see the end of the section 1 presentation for the solution.

Section 2

Get Adobe Flash player

Lab 2

Objectives

  • Utilize Spring Security authorization to secure an application.

Steps

  • Download and install the following application: Media:wam-lab2.zip‎
    • Unzip the file into your workspace
    • In the LDSTech IDE go to File -> Import... -> Maven (expand) -> Existing Maven Projects -> Next
    • Browse to the unzipped project and press Finish
    • Start the automatically generated (if using LdsTech IDE) server
    • Test that the application runs without error - http://localhost: 8080/wam-lab2
  • Make the entire application require authentication to access it
  • Open up the canary page with a security="none" tag

Lab 2 Solution

The lab is exactly the same as the last demo in the presentation, so please see the end of the section 2 presentation for the solution.

Conclusion

Get Adobe Flash player
This page was last modified on 16 July 2012, at 16:39.

Note: Content found in this wiki may not always reflect official Church information. See Terms of Use.