Skip to content

Commit

Permalink
SHIBUI-2030
Browse files Browse the repository at this point in the history
fix login issue
  • Loading branch information
chasegawa committed Aug 20, 2021
1 parent 5a032d3 commit f2b6975
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ class DevConfig {
}, new Role().with {
name = 'ROLE_NONE'
it
}, new Role().with {
name = 'ROLE_ENABLE'
it
}]
roles.each {
roleRepository.save(it)
Expand Down Expand Up @@ -207,4 +210,4 @@ class DevConfig {
return it
})
}
}
}
5 changes: 5 additions & 0 deletions backend/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ spring.datasource.platform=h2
spring.datasource.driverClassName=org.h2.Driver
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
spring.h2.console.enabled=true
spring.h2.console.settings.web-allow-others=true

# spring.jackson.default-property-inclusion=non_absent
spring.jackson.default-property-inclusion=NON_NULL
Expand Down Expand Up @@ -87,7 +88,11 @@ shibui.mail.text-email-template-path-prefix=/mail/text/
shibui.mail.html.email-template-path-prefix=/mail/html/
shibui.mail.system-email-address=doNotReply@shibui.org


#ShibUIConfiguration slurps in these values and they are bootstrapped in on startup
shibui.roles=ROLE_ADMIN,ROLE_ENABLE,ROLE_USER,ROLE_NONE
#Authenticated access roles - used by Spring Security to allow access when authenticated
shibui.roles.authenticated=ADMIN,ENABLE,USER

#In order to enable authentication via configured pac4j library (with external SAMl Idp, for example)
#This property must be set to true and pac4j properties configured. For sample pac4j properties, see application.yml
Expand Down

0 comments on commit f2b6975

Please sign in to comment.