Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
e-gov
RIHA-Browser
Commits
d299f347
Commit
d299f347
authored
Feb 15, 2021
by
Aleksandr Ivanov
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setting truststore on load
parent
26e3f307
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
backend/src/main/java/ee/ria/riha/conf/WebSecurityConfiguration.java
.../main/java/ee/ria/riha/conf/WebSecurityConfiguration.java
+10
-0
No files found.
backend/src/main/java/ee/ria/riha/conf/WebSecurityConfiguration.java
View file @
d299f347
...
...
@@ -29,6 +29,7 @@ import org.springframework.web.util.*;
import
java.lang.reflect.*
;
import
java.util.*
;
import
javax.annotation.*
;
import
javax.servlet.*
;
import
javax.servlet.http.*
;
...
...
@@ -60,9 +61,18 @@ public class WebSecurityConfiguration extends WebSecurityConfigurerAdapter {
@Autowired
protected
ApplicationProperties
applicationProperties
;
@Autowired
protected
FeedbackServiceConnectionProperties
feedbackServiceConnectionProperties
;
@Value
(
"${csp.policyDirective}"
)
private
String
policyDirective
;
@PostConstruct
public
void
postConstruct
()
{
System
.
setProperty
(
"javax.net.ssl.trustStore"
,
feedbackServiceConnectionProperties
.
getTrustStore
().
getAbsolutePath
());
System
.
setProperty
(
"javax.net.ssl.trustStorePassword"
,
new
String
(
feedbackServiceConnectionProperties
.
getTrustStorePassword
()));
}
@Bean
public
LdapUserDetailsService
ldapUserDetailsService
(
ApplicationProperties
applicationProperties
,
LdapContextSource
contextSource
)
{
...
...
RIA Bitbucket
@ria-bitbucket
mentioned in commit
9fe0cd4d
·
Feb 15, 2021
mentioned in commit
9fe0cd4d
mentioned in commit 9fe0cd4db663e026e8011b000cf1d1541652cfa1
Toggle commit list
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