Skip to content

Commit

Permalink
Added Basic Auth using Spring Security
Browse files Browse the repository at this point in the history
  • Loading branch information
hariprasath-r committed Apr 27, 2020
1 parent f271a77 commit 69c7071
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
Expand Down
5 changes: 5 additions & 0 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ spring:
# configuring basename here instead of @Bean config for ResourceBundleMessageSource
messages:
basename: messages
# by default the username will be "user" and password will be generated and printed in console
security:
user:
name: username
password: password

#spring boot actuator configurations
management:
Expand Down

0 comments on commit 69c7071

Please sign in to comment.