StruckCroissant / Game-DB

Game-DB is a game database search engine deployed on Docker and powered by Java Spring Boot and AngularJS
GNU General Public License v3.0
2 stars 0 forks source link

handle login and auth requests through front-end webpages #28

Closed github-actions[bot] closed 1 year ago

github-actions[bot] commented 2 years 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();
StruckCroissant commented 2 years ago

This link should be helpful.

In addition - the antMatchers function might need to be changed to allow for a login request as well.

github-actions[bot] commented 1 year ago

Closed in 07e0eb226460762bd2eed6e1a760a3a1083575e6