QDBordtoshred / WEni

MIT License
0 stars 0 forks source link

Quiz #17

Open QDBordtoshred opened 7 months ago

QDBordtoshred commented 7 months ago

Quinn Bireley

Period 3

Score - 3.3

1.

Server_name is specifying the website your interested in and Proxy_pass is telling the middle man where to find that websites content.

(0.8)

2. show a jwt login process, split the browser screen and show after login that you go to a page that requires auth and creates a cookie.

image image

(0.8)

3. show sacurity configuration rules required for axess within spring boot, provide a request matcher that shows permit all and a request matcher that shows authentication requirments

image

@Configuration
@EnableWebSecurity
public class SecurityConfig extends WebSecurityConfigurerAdapter {

    @Override
    protected void configure(HttpSecurity http) throws Exception {
        http
            .authorizeRequests()
                // Permit all requests to "/public/**"
                .antMatchers("/public/**").permitAll()
                // Require authentication for other requests
                .anyRequest().authenticated()
                .and()
            .formLogin()
                // Customize login page and login processing URL if needed
                .loginPage("/login")
                .permitAll()
                .and()
            .logout()
                .permitAll();
    }
}

(0.85)

4. Explain a pojo and changes to a pojo, show pojo in vscode editor, highlight something you changed, show pojo result via data in postman

image image image

(0.8)