@Override public void configure(AuthorizationServerSecurityConfigurer oauthServer) throws Exception { //oauthServer.realm("sparklr2/client"); oauthServer.allowFormAuthenticationForClients(); }