-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Headers based security and external authentication improvements #192
Conversation
…thout using the local db for validation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. 👍
Only a couple of questions:
-
If you want to switch you have to configure a both token authentication (to disable user retrival from service) and configure an headerfilter in context.
Am I Right? This looks complicate. Is there a way to switch between the two set-ups configuring only one of them, or setting them in cascade, so checkToken is not called automatically' -
Can you document a little bit how to configure HeaderAuthenticationFilter ( enable it, configure user and role mapping and so on...).
this wiki is ok. So we can copy it on mapstore docs soon
Example of config (that I am working on): <security:http auto-config="true" create-session="never" >
<security:http-basic entry-point-ref="restAuthenticationEntryPoint"/>
<!--security:custom-filter ref="authenticationTokenProcessingFilter" before="FORM_LOGIN_FILTER"/-->
<security:custom-filter ref="sessionTokenProcessingFilter" after="FORM_LOGIN_FILTER"/>
<security:custom-filter ref="headersProcessingFilter" before="FORM_LOGIN_FILTER"/>
<security:anonymous />
</security:http>
<security:authentication-manager>
<security:authentication-provider ref='georchestraAuthenticationProvider' />
</security:authentication-manager>
<bean class="it.geosolutions.geostore.services.rest.security.HeadersAuthenticationFilter" id="headersProcessingFilter">
</bean>
<bean id="georchestraAuthenticationProvider" class="it.geosolutions.geostore.services.rest.security.PreAuthenticatedAuthenticationProvider">
</bean>
This is the way Spring Security works: we have a bit of complexity to allow a lot of flexibility. |
No description provided.