package com.thecoffeine.virtuoso.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;

/**
 * Resource server configuration.
 *
 * @version 1.0
 */
@Profile( "default" )
@Configuration
@EnableResourceServer
public class SecurityConfig {//} extends ResourceServerConfigurerAdapter {

//    @Override
//    public void configure( HttpSecurity http ) throws Exception {
//        http.csrf().disable();
//        http.httpBasic().disable();
//
//        http.requestMatchers().antMatchers( "/music/**" )
//            .and()
//            .authorizeRequests()
//            .antMatchers( "/music/songs**" ).permitAll()
//            .anyRequest().authenticated();
//
//        http.sessionManagement().sessionCreationPolicy( SessionCreationPolicy.STATELESS);
//    }
}

@@ -191,69 +191,262 @@
 ity.
-oauth2.config.annotation.web.configuration.EnableResourceServ
+config.annotation.web.builders.HttpSecurity;%0Aimport org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;%0Aimport org.springframework.security.oauth2.config.annotation.web.configuration.ResourceServerConfigurerAdapt
 er;%0A
@@ -597,13 +597,8 @@
 nfig
- %7B//%7D
  ext
@@ -637,18 +637,16 @@
 pter %7B%0A%0A
-//
     @Ove
@@ -651,18 +651,16 @@
 verride%0A
-//
     publ
@@ -717,18 +717,16 @@
 ption %7B%0A
-//
         
@@ -748,18 +748,16 @@
 able();%0A
-//
         
@@ -780,29 +780,25 @@
 .disable();%0A
-//%0A//
+%0A
         http
@@ -843,18 +843,16 @@
 c/**%22 )%0A
-//
         
@@ -862,18 +862,16 @@
  .and()%0A
-//
         
@@ -895,18 +895,16 @@
 uests()%0A
-//
         
@@ -934,17 +934,17 @@
 ic/songs
-*
+/
 *%22 ).per
@@ -952,18 +952,16 @@
 itAll()%0A
-//
         
@@ -999,105 +999,8 @@
 ();%0A
-//%0A//        http.sessionManagement().sessionCreationPolicy( SessionCreationPolicy.STATELESS);%0A//
     

Make song public.