Closed github-actions[bot] closed 1 year ago
https://github.com/StruckCroissant/Game-DB/blob/47fc0a8bae7c40a608babb563fce742f9cb8e636/api/main/java/com/StruckCroissant/GameDB/security/config/WebSecurityConfig.java#L31
// TODO make configure file for endpoint constants @Override protected void configure(HttpSecurity http) throws Exception { // TODO handle login and auth requests through front-end webpages http .csrf().disable() .authorizeRequests() .antMatchers("/api/v*/register/**") .permitAll() .anyRequest() .authenticated();
This link should be helpful.
In addition - the antMatchers function might need to be changed to allow for a login request as well.
antMatchers
Closed in 07e0eb226460762bd2eed6e1a760a3a1083575e6
https://github.com/StruckCroissant/Game-DB/blob/47fc0a8bae7c40a608babb563fce742f9cb8e636/api/main/java/com/StruckCroissant/GameDB/security/config/WebSecurityConfig.java#L31