We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Timestamp: (1822) 1822 / 2207
The text was updated successfully, but these errors were encountered:
create new file called "SecurityConfig.java" inside of a new package called "config"
. └── backend ├── HELP.md ├── mvnw ├── mvnw.cmd ├── pom.xml ├── src │ ├── main │ │ ├── java │ │ │ └── com │ │ │ └── nellyxinwei │ │ │ └── backend │ │ │ ├── BackendApplication.java │ │ │ ├── config │ │ │ │ └── SecurityConfig.java │ │ │ └── controllers │ │ │ └── GreetingsController.java
SecurityConfig.java
package com.nellyxinwei.backend.config; import org.springframework.context.annotation.Bean; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; import org.springframework.security.web.SecurityFilterChain; @EnableWebSecurity public class SecurityConfig { @Bean public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception { http .authorizeRequests() .anyRequest() .authenticated() .and() .httpBasic(); return http.build(); } }
Sorry, something went wrong.
now on next part lets see whats change. they said instead of form login, itll just be a http basic. lets check that out
njtalba5127
Successfully merging a pull request may close this issue.
Timestamp: (1822) 1822 / 2207
The text was updated successfully, but these errors were encountered: