Description
The basic authorization plugin performs a BASIC authorization check to ensure that only authorized users are allowed access to your blog.
Availability
This plugin is available as of blojsom 2.23.
Installation and Setup
In your /WEB-INF/classes/blojsom-plugins.xml file, add the following:
<bean id="basic-authentication" class="org.blojsom.plugin.security.BasicAuthenticationPlugin" init-method="init"
destroy-method="destroy">
<property name="servletConfig">
<ref bean="servletConfigFactoryBean"/>
</property>
<property name="authorizationProvider">
<ref bean="authorizationProvider"/>
</property>
<property name="resourceManager">
<ref bean="resourceManager"/>
</property>
</bean>
You may then add "basic-authentication" to one of the flavor-based plugin chains. It should be placed at the beginning of the plugin chain to ensure authorization is checked immediately.
Usage and URL Parameters
Usage
The authorized users allowed to access the blog are those users you setup for the web administration console.
URL Parameters
There are no URL parameters to control the operation of the basic authentication plugin.