feat: enforce login and refresh portal
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
</global-results>
|
||||
|
||||
<action name="index">
|
||||
<interceptor-ref name="secureStack"/>
|
||||
<result>/WEB-INF/views/index.jsp</result>
|
||||
</action>
|
||||
|
||||
@@ -31,6 +32,7 @@
|
||||
</action>
|
||||
|
||||
<action name="hello" class="com.demo.action.HelloAction" method="execute">
|
||||
<interceptor-ref name="secureStack"/>
|
||||
<result>/hello.jsp</result>
|
||||
</action>
|
||||
|
||||
@@ -76,6 +78,7 @@
|
||||
</action>
|
||||
|
||||
<action name="ajax" class="com.demo.action.AjaxAction" method="execute">
|
||||
<interceptor-ref name="secureStack"/>
|
||||
<result type="json"/>
|
||||
</action>
|
||||
|
||||
@@ -87,7 +90,15 @@
|
||||
</package>
|
||||
|
||||
<package name="rest" namespace="/api" extends="json-default">
|
||||
<interceptors>
|
||||
<interceptor name="auth" class="com.demo.action.interceptor.AuthInterceptor"/>
|
||||
<interceptor-stack name="secureStack">
|
||||
<interceptor-ref name="auth"/>
|
||||
<interceptor-ref name="defaultStack"/>
|
||||
</interceptor-stack>
|
||||
</interceptors>
|
||||
<action name="users" class="com.demo.action.rest.UserRestAction" method="execute">
|
||||
<interceptor-ref name="secureStack"/>
|
||||
<result type="json"/>
|
||||
</action>
|
||||
</package>
|
||||
|
||||
Reference in New Issue
Block a user