Skip to content

Conversation

@shaiksahilrizwan
Copy link
Contributor

This PR adds Spring Security with basic authentication to the Java API server template

Changes Made

Added Spring Security dependency (spring-boot-starter-security) to pom.xml
Implemented in-memory authentication with a configurable default user
Secured all endpoints with HTTP Basic Authentication

Authentication Details

Default Credentials

  • Username: user
  • Password: temp
  • Role: Employee
    Can edit these and add as per required .
    I have personally used and tested this setup worked with postman as well, Further there are not tests written for this api security integration can be included.
    Open in IDX

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant