Skip to content

Commit

Permalink
#37: fixed roles mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarto committed Oct 25, 2019
1 parent 43fdc45 commit 120886c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/src/main/resources/geostore-spring-security.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,15 @@
<property name="addEveryOneGroup" value="true"/>
<property name="usernameHeader" value="sec-username"/>
<property name="groupsHeader" value="sec-roles"/>
<property name="listDelimiter" value=";"/>
<property name="authoritiesMapper" ref="rolesMapper"/>
</bean>

<!-- GeOrchestra groups to roles mapper for Headers Auth Filter -->
<bean id="rolesMapper" class="it.geosolutions.geostore.core.security.SimpleGrantedAuthoritiesMapper">
<constructor-arg>
<map>
<entry key="MAPSTORE_ADMIN" value="ADMIN"/>
<entry key="ROLE_MAPSTORE_ADMIN" value="ADMIN"/>
</map>
</constructor-arg>
</bean>
Expand Down

0 comments on commit 120886c

Please sign in to comment.