@@ -0,0 +1,1094 @@
+package com.rizki.mufrizal.belajar.oauth2.configSecurity;%0A%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.context.annotation.Configuration;%0Aimport org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;%0Aimport org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;%0Aimport org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;%0Aimport org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;%0Aimport org.springframework.security.config.annotation.web.servlet.configuration.EnableWebMvcSecurity;%0A%0A@Configuration%0A@EnableWebSecurity(debug = true)%0A@EnableWebMvcSecurity%0A@EnableGlobalMethodSecurity(securedEnabled = true)%0Apublic class WebSecurityConfig extends WebSecurityConfigurerAdapter%7B%0A%0A    @Autowired%0A    public void configureGlobal(AuthenticationManagerBuilder authenticationManagerBuilder) throws Exception%7B%0A        authenticationManagerBuilder%0A                .inMemoryAuthentication();%0A    %7D%0A%0A%7D%0A

Add Web Security Config