-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
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
1023 - Install Spring Security #7
Comments
move the controller we just made inside a new package called "controllers"
|
add the spring-security dependency inside our pom.xml
|
after making changes to pom.xml, reload the java project again |
rerun spring boot application
|
if u see the run logs of our app. by default spring boot would generate this generated security password now that we have added spring-security as our dependency
|
now if we open our localhost again in our browser, this time we'll be met up with a login form |
now lets try using the generated password from our running log to try and login and access our api endpoints. username: "user" (by default its user) |
now making through the login page, we can once again see the output when performing the different get requests we made with our simple controller - api using our browsers |
now when we go to the route in our browser http://localhost:8080/logout, itll show us a page with the message "Are you sure want to log out?" with a blue log out button |
on the next part theyll explain what happened exactly |
Timestamp: (1023) 1023 / 1433
The text was updated successfully, but these errors were encountered: