Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Genesys Backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
17
Issues
17
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Genesys PGR
Genesys Backend
Commits
7fc39103
Commit
7fc39103
authored
Dec 24, 2018
by
Matija Obreza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Configure JsonSidConverter for Audited model serialization
parent
6cbf4a6a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
src/main/java/org/genesys2/spring/config/SecurityConfig.java
src/main/java/org/genesys2/spring/config/SecurityConfig.java
+10
-1
No files found.
src/main/java/org/genesys2/spring/config/SecurityConfig.java
View file @
7fc39103
...
...
@@ -24,7 +24,9 @@ import org.genesys.blocks.security.service.CustomAclService;
import
org.genesys.blocks.security.service.PasswordPolicy
;
import
org.genesys.blocks.security.service.impl.CustomAclServiceImpl
;
import
org.genesys.blocks.security.service.impl.SimplePasswordPolicy
;
import
org.genesys.blocks.util.JsonSidConverter
;
import
org.genesys2.server.cache.HazelcastAclCache
;
import
org.springframework.beans.factory.InitializingBean
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.cache.CacheManager
;
import
org.springframework.context.annotation.Bean
;
...
...
@@ -45,13 +47,19 @@ import org.springframework.security.crypto.password.PasswordEncoder;
@Configuration
//@EnableGlobalMethodSecurity(prePostEnabled = true, securedEnabled = true)
@Import
({
AccountLockoutConfig
.
class
})
public
class
SecurityConfig
{
public
class
SecurityConfig
implements
InitializingBean
{
@Autowired
private
DataSource
dataSource
;
@Autowired
private
CacheManager
cacheManager
;
@Override
public
void
afterPropertiesSet
()
throws
Exception
{
// Configure JsonSidConverter
JsonSidConverter
.
setSidProvider
(
customAclService
());
}
/**
* Session registry.
...
...
@@ -108,6 +116,7 @@ public class SecurityConfig {
@Bean
public
CustomAclService
customAclService
()
{
System
.
err
.
println
(
"Making ACL service!!"
);
return
new
CustomAclServiceImpl
();
}
...
...
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