package ch.hevs.aislab.magpie.broker;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

//Inject automatically the dependencies marked as @Autowired
@EnableAutoConfiguration
//This object is the Configuration for the application
@Configuration
//Scan packages for controllers
@ComponentScan
public class Application {

	public static void main(String[] args) {
		SpringApplication.run(Application.class, args);
	}
	
}

@@ -275,16 +275,141 @@
 uration;
+%0Aimport org.springframework.context.annotation.Import;%0A%0Aimport ch.hevs.aislab.magpie.broker.auth.OAuth2SecurityConfiguration;
 %0A%0A//Inje
@@ -605,16 +605,126 @@
 entScan%0A
+//Include OAuth2SecurityConfiguration as part of the configuration%0A@Import(OAuth2SecurityConfiguration.class)%0A
 public c

Add OAuth2 configuration