anchor.diff:          }
       }
   }
  +----
  +====
  +
  +In addition to the `HttpSecurity.oauth2Client()` DSL, XML configuration is also supported.
  +
  +The following code shows the complete configuration options available in the <<nsa-oauth2-client, security namespace>>:
  +
  +.OAuth2 Client XML Configuration Options
  +====
  +[source,xml]
  +----
  +<http>
  +	<oauth2-client client-registration-repository-ref="clientRegistrationRepository"
  +				   authorized-client-repository-ref="authorizedClientRepository"
  +				   authorized-client-service-ref="authorizedClientService">
  +		<authorization-code-grant
  +				authorization-request-repository-ref="authorizationRequestRepository"
  +				authorization-request-resolver-ref="authorizationRequestResolver"
  +				access-token-response-client-ref="accessTokenResponseClient"/>
  +	</oauth2-client>
  +</http>
   ----
   ====
   
  
positive.code:     }
  }
  ----
  ====
  
  
  ===== Requesting an Access Token
  
  
negative.code:         }
      }
  }
  ----
  
  .Xml
  [source,xml,role="secondary"]
  ----
  <http>
  	<oauth2-client>
  		<authorization-code-grant access-token-response-client-ref="accessTokenResponseClient"/>
  	</oauth2-client>
  </http>
  ----
  ====
  
  