anchor.diff:  
   [source,java] 
   ----
  -include::{book-root}/docs/src/main/asciidoc/snippets/basic-application.txt[]
  +include::{book-root}/snippets/basic-application.txt[]
   ----  
   
   
  
positive.code: 
  [source,json] 
  ----
  include::{book-root}/docs/src/main/asciidoc/snippets/simple-json-response.txt[]
  ----  
  
  	
  
negative.code: 
  [source,java] 
  ---- 
  include::{book-root}/snippets/user-details-service.txt[]
  ----   
  
  Spring Security provides many implementations of this contract that adapt  existing identity providers, like Active Directory, LDAP, `pam`, CAAS, etc. http://spring.io/projects/spring-social[Spring Social] even provides a nice integration that delegates to    different OAuth-based services like Facebook, Twitter, etc., for authentication.  
  