LDSTechForumProjects

LDS Account Integration - Part 1

This training is meant to be a comprehensive introduction to the Java Stack's integration with LDS Account. It will cover authentication integration with Spring Security as well as a consistent interface for accessing user information for the authenticated user.

Prerequisites

Slide Deck

Media:LDS_Account_Integration_Training.pptx

Section 1

Get Adobe Flash player

Lab 1

Objectives

  • Become familiar with the LdsAccountDetails object.

Steps

Lab 1 Solution

Get Adobe Flash player

Section 2

Get Adobe Flash player

Lab 2

Objectives

  • Learn how LDS Account integrates with authentication mechanisms such as Spring Security

Steps

  • Download and install the following application: Media:lds-account-training1.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/lds-account-training1
      • You should hit a login page but be unable to log in
  • Now, for the lab, modify the project to use in-memory authentication using the documentation found here - http://code.lds.org/maven-sites/stack/module.html?module=lds-account/stack-lds-account-spring/index.html#In_Memory_Authentication
    • Add the in-memory namespace handler configuration to applicationContext.xml
      • Add attributes for preferred name and gender for at least one of your in-memory users
    • Configure the authentication manager (sec:authentication-manager) to utilize the ldsAccountAuthenticationProvider generated by the in-memory namespace handler
    • Now hit the application and log in with your in memory user - http://localhost: 8080/lds-account-training1

Lab 2 Solution

Get Adobe Flash player

Section 3 (Authorities Populators)

Get Adobe Flash player

Section 4 (LDS Account - LDAP Search)

Get Adobe Flash player

Conclusion

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

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