Giter Club home page Giter Club logo

spring-security-4.1-and-beyond's Introduction

Build Status

Note
All JavaScript REST calls should be accept application/json

Authenticate with [email protected] / password

spring-security-4.1-and-beyond's People

Contributors

jgrandja avatar

Stargazers

Alexander  avatar Valerii  avatar Deepak avatar Areeb Jamal avatar peanut avatar Vincent DAGOURY avatar Thiago avatar Haley Wang avatar Luis Alberto Yucra Ccolqque avatar Aklil avatar Christian Henle avatar Gerardo López Reyes avatar Elia Rohana avatar Martijn Haex avatar  avatar fan avatar Zakaria Amine avatar  avatar Juan Pablo Prado avatar Hasan Kara avatar Luiz Augusto avatar

Watchers

Rob Winch avatar  avatar Luiz Augusto avatar SANJAY GAUTAM avatar  avatar Andrew Vu avatar  avatar

spring-security-4.1-and-beyond's Issues

presentation branch's rest build.gradle denpencies updates -downgrade jackson-databind-2.9.0 to 2.8.7

Hi:
The current build.gradle will import jackson-databind-2.9.0 jar which causes springboot's staring up failure for reason of java.lang.NoClassDefFoundError: com/fasterxml/jackson/annotation/JsonMerge.

After modifying the build.gradle's dependencies as following , spring boot starts up successfully.

dependencies {
compile ".............
..............
"javax.servlet:jstl"
compile "com.fasterxml.jackson.core:jackson-databind:2.8.7"
compile ('com.maxmind.geoip2:geoip2:2.7.0'){
exclude group: 'com.fasterxml.jackson.core', module: 'jackson-databind'
}

Another way to learn:
The netbeans 8.2 tested maven version of presentation branch is post here -https://github.com/mingqin1/spring-security-4.1-and-beyond/tree/presentation . The maven converted codes serve the purpose of encourage of learning . All the credits go to Rob Winch, Joe Grandja

Ensure tests are focussed

Our tests should be more focused. For example, we should not need to authenticate to delete Joe's messages. The test is deleting the messages...not authenticating as Joe. Instead, we should leverage @WithMockUser, with(csrf()), etc.

We can add additional tests that are specific to does CSRF work with cookies, does authentication work, etc.

Fix link in Summary to details

We should make it so that the mouse demonstrates you can click on the link in the Summary that leads to the details. Currently it looks like text rather than a link.

image

Split into UI and REST apps

To demonstrate CORS we need to split into two different apps. We should have it setup this way before we add security since CORS is really a Spring MVC application.

Custom Log In should not perform redirect

We should allow access to the home page and deny access to any rest resources. The processing of the rest resource should trigger a 401 which should trigger the authentication dialog to pop up. This demonstrates the content negotiation within Spring Security

This is similar to https://github.com/rwinch/spring-state-securing-restful-apis/blob/master/messages-session/src/main/java/sample/config/SecurityConfig.java#L28

Also see https://youtu.be/Z1DfpxQ84as?t=21m45s

Use Spring Security naming schemes

Rather than "/custom-login" and "/login-error" use "/login" and "/login?error" to:

  • reduce configuration
  • make more like a real application (no real app will have custom- in the URL)

NOTE See #7

cc @jgrandja

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.