Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
BCP
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BCP
BCP
Commits
4d5ec0c7
Commit
4d5ec0c7
authored
Jun 14, 2021
by
ksankar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FIx new ip address
parent
c048ff71
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
SecurityConfig.java
...main/java/com/altimetrik/bcp/security/SecurityConfig.java
+5
-5
application.properties
src/main/resources/application.properties
+3
-3
No files found.
src/main/java/com/altimetrik/bcp/security/SecurityConfig.java
View file @
4d5ec0c7
...
@@ -29,7 +29,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
...
@@ -29,7 +29,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
//.loginProcessingUrl("/index")
//.loginProcessingUrl("/index")
.
usernameParameter
(
"username"
)
.
usernameParameter
(
"username"
)
.
passwordParameter
(
"password"
)
.
passwordParameter
(
"password"
)
.
defaultSuccessUrl
(
"/
projects
"
)
.
defaultSuccessUrl
(
"/
dashboard
"
)
.
failureUrl
(
"/index?error=true"
)
.
failureUrl
(
"/index?error=true"
)
.
permitAll
()
.
permitAll
()
.
and
()
.
and
()
...
@@ -41,11 +41,11 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
...
@@ -41,11 +41,11 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
@Autowired
@Autowired
public
void
configureGlobal
(
AuthenticationManagerBuilder
auth
)
throws
Exception
{
public
void
configureGlobal
(
AuthenticationManagerBuilder
auth
)
throws
Exception
{
//
auth.authenticationProvider(customAuthenticationProvider);
auth
.
authenticationProvider
(
customAuthenticationProvider
);
auth
.
inMemoryAuthentication
().
withUser
(
"admin"
).
password
(
"{noop}admin"
).
roles
(
"ADMIN"
);
//
auth.inMemoryAuthentication().withUser("admin").password("{noop}admin").roles("ADMIN");
auth
.
inMemoryAuthentication
().
withUser
(
"tester"
).
password
(
"{noop}tester"
).
roles
(
"USER"
);
//
auth.inMemoryAuthentication().withUser("tester").password("{noop}tester").roles("USER");
auth
.
inMemoryAuthentication
().
withUser
(
"karthick"
).
password
(
"{noop}karthick"
).
roles
(
"USER"
);
//
auth.inMemoryAuthentication().withUser("karthick").password("{noop}karthick").roles("USER");
}
}
@Override
@Override
...
...
src/main/resources/application.properties
View file @
4d5ec0c7
...
@@ -23,7 +23,7 @@ bcp.attendance.include.country.names=INDIA
...
@@ -23,7 +23,7 @@ bcp.attendance.include.country.names=INDIA
#Local
#Local
server.port
=
9097
#
server.port=9097
#spring.datasource.url=jdbc:mysql://bcp-mysql:3306/bcp
#spring.datasource.url=jdbc:mysql://bcp-mysql:3306/bcp
#spring.datasource.username=root
#spring.datasource.username=root
#spring.datasource.password=password
#spring.datasource.password=password
...
@@ -37,9 +37,9 @@ server.port=9097
...
@@ -37,9 +37,9 @@ server.port=9097
mail.username
:
bcpdashboard@altimetrik.com
mail.username
:
bcpdashboard@altimetrik.com
mail.password
:
bcppassword
mail.password
:
bcppassword
#
server.port=8563
server.port
=
8563
#MYSQL config
#MYSQL config
spring.datasource.url
=
jdbc:mysql://1
92.168.68.122
:3306/bcp
spring.datasource.url
=
jdbc:mysql://1
0.4.33.67
:3306/bcp
spring.datasource.username
=
bcp
spring.datasource.username
=
bcp
spring.datasource.password
=
Alti@12345
spring.datasource.password
=
Alti@12345
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment