-
Notifications
You must be signed in to change notification settings - Fork 63
Security configuration Simple
zguo edited this page Mar 23, 2017
·
3 revisions
Simple authentication is the default setting used by geoportal
1. Uncomment the following line in app-security.xml to use file authentication-simple.xml for authentication
<!-- <beans:import resource="authentication-simple.xml"/> -->
This section defines the settings for authentication manager
<security:authentication-manager alias="authenticationManager">
<security:authentication-provider>
<security:user-service>
<security:user name="gptadmin" password="gptadmin" authorities="ROLE_ADMIN,ROLE_PUBLISHER" />
<security:user name="admin" password="admin" authorities="ROLE_ADMIN,ROLE_PUBLISHER" />
<security:user name="publisher" password="publisher" authorities="ROLE_PUBLISHER" />
<security:user name="user" password="user" authorities="ROLE_USER" />
</security:user-service>
</security:authentication-provider>
</security:authentication-manager>
/beans:beans/security:authentication-manager/security:authentication-provider/security:user-service/security:user[1] /beans:beans/security:authentication-manager/security:authentication-provider/security:user-service/security:user[1]/@name
Parameter Name | Description |
---|---|
security:user | contains user entries for Geoportal, you will need one entry for each user |
@name | User name |
@password | Password for the user |
@authorities | A comma separated list of roles the user belongs to, ROLE_ADMIN is for Geoportal administrator, ROLE_PUBLISHER is for publisher who can publish metadata, ROLE_USER is for regular users. |