Giter Club home page Giter Club logo

tutorial-spring-ad-security's Introduction

Spring 4.0 Security Example

by Lee Vettleson

Overview

The purpose of this project is to provide an isolated example of a web application using Spring Security. It specifically utilizes an Active Directory service for authentication and role membership.

Dependencies

  1. Spring Framework 4.2.0
  2. Spring Security 4.0.2
  3. SLF4j 1.7.3
  4. Gradle 2.6

Getting Started

To build:

> gradle build

This should build the .war file to deploy to your application container of choice. (Tomcat 8 works)

Then open a browser to the following: http://localhost:8080/SpringSecSample

You will need to log in with your network credentials. As this is not an https connection, please only do this locally. If you deploy to an actual server environment, please change the connection to https and modify the ldap.properties to use the secure connection to Active Directory.

Development environment

I created this using:

This is backwards compatible to Java 1.6 and is easily converted to build with Maven as it originally was a Maven 2+ project that I converted to using Gradle.

Migrating Spring from 3.x to 4.x

Updating from 3 to 4 wasn't too terribly bad but it wasn't a trivial change.

Official Notes are here.

tutorial-spring-ad-security's People

Watchers

James Cloos avatar Lealand Vettleson avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.