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:     }
  }
  ----
  ====
  
  [IMPORTANT]
  
negative.code: ----
  ====
  
  In addition to the `oauth2Login()` DSL, XML configuration is also supported.
  
  The following code shows the complete configuration options available in the <<nsa-oauth2-login, security namespace>>:
  
  .OAuth2 Login XML Configuration Options
  ====
  [source,xml]
  ----
  <http>
  	<oauth2-login client-registration-repository-ref="clientRegistrationRepository"
  				  authorized-client-repository-ref="authorizedClientRepository"
  				  authorized-client-service-ref="authorizedClientService"
  				  authorization-request-repository-ref="authorizationRequestRepository"
  				  authorization-request-resolver-ref="authorizationRequestResolver"
  				  access-token-response-client-ref="accessTokenResponseClient"
  				  user-authorities-mapper-ref="userAuthoritiesMapper"
  				  user-service-ref="oauth2UserService"
  				  oidc-user-service-ref="oidcUserService"
  				  login-processing-url="/login/oauth2/code/*"
  				  login-page="/login"
  				  authentication-success-handler-ref="authenticationSuccessHandler"
  				  authentication-failure-handler-ref="authenticationFailureHandler"
  				  jwt-decoder-factory-ref="jwtDecoderFactory"/>
  </http>
  ----
  ====
  
  The following sections go into more detail on each of the configuration options available:
  
  * <<oauth2login-advanced-login-page, OAuth 2.0 Login Page>>
  