anchor.diff:  	}
   }
   ----
  +
  +.Xml
  +[source,xml,role="secondary"]
  +----
  +<http auto-config="true">
  +	<intercept-url pattern="/**" access="authenticated"/>
  +	<oauth2-login authorized-client-repository-ref="authorizedClientRepository"/>
  +</http>
  +
  +<client-registrations>
  +	<client-registration registration-id="google"
  +						 client-id="google-client-id"
  +						 client-secret="google-client-secret"
  +						 provider-id="google"/>
  +</client-registrations>
  +
  +<b:bean id="authorizedClientService"
  +		class="org.springframework.security.oauth2.client.InMemoryOAuth2AuthorizedClientService"
  +		autowire="constructor"/>
  +
  +<b:bean id="authorizedClientRepository"
  +		class="org.springframework.security.oauth2.client.web.AuthenticatedPrincipalOAuth2AuthorizedClientRepository">
  +	<b:constructor-arg ref="authorizedClientService"/>
  +</b:bean>
  +----
  +====
  +
   
   [[oauth2login-advanced]]
   === Advanced Configuration
  
positive.code:         }
      }
  }
  ----
  ====
  
  
negative.code:         }
      }
  }
  ----
  
  .Xml
  [source,xml,role="secondary"]
  ----
  <http>
  	<oauth2-login login-processing-url="/login/oauth2/callback/*"
  				  ...
      />
  </http>
  ----
  ====
  
  