title: Understanding spring-security-oauth2 @EnableAuthorizationServer
body: <p>I have a <strong><em>spring-security-oauth2</em></strong> project running smoothly with a class as Authorization server. </p>
  
  <p>The <em>client-ids, user-tokens, refresh-tokens</em> are all managed by the database.</p>
  
  <pre><code>@Configuration
  @EnableAuthorizationServer
  public class AuthorizationServerConfiguration extends AuthorizationServerConfigurerAdapter {
      private static String REALM = "MY_OAUTH_REALM";
      ...
      @Override
      public void configure(AuthorizationServerSecurityConfigurer oauthServer) throws Exception {
          oauthServer.realm(REALM + "/client");
      }
  }
  </code></pre>
  
  <p>Everything is working fine except that i don't have any idea what the configure method is doing. Even if i remove the complete method the <em>oauth2</em> process still works fine.</p>
  
  <p>What is the main use of configure method in this context and what realm is it setting here? </p>
  
  <p>Please help me in understanding it.</p>
  
  <p>Thanks.</p>