You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2024/02/06 08:32:17 UTC

(ofbiz-framework) branch trunk updated: Improved: Make loadJWT request auth true (OFBIZ-12894)

This is an automated email from the ASF dual-hosted git repository.

jleroux pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 6708f750ee Improved: Make loadJWT request auth true (OFBIZ-12894)
6708f750ee is described below

commit 6708f750ee51319f48a8e59238630dae76c21976
Author: Jacques Le Roux <ja...@les7arts.com>
AuthorDate: Tue Feb 6 09:29:37 2024 +0100

    Improved: Make loadJWT request auth true (OFBIZ-12894)
    
    When I created this request it did not occur to me that it should be better
    using auth true
---
 framework/common/webcommon/WEB-INF/common-controller.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/framework/common/webcommon/WEB-INF/common-controller.xml b/framework/common/webcommon/WEB-INF/common-controller.xml
index 902d0961c5..2f1b475bdc 100644
--- a/framework/common/webcommon/WEB-INF/common-controller.xml
+++ b/framework/common/webcommon/WEB-INF/common-controller.xml
@@ -271,7 +271,7 @@ under the License.
 
     <!-- Common JavaScript loadJWT Request, to receive JwtToken within regular JS Code -->
     <request-map uri="loadJWT">
-        <security https="true" auth="false"/>
+        <security https="true" auth="true"/>
         <event type="java" path="org.apache.ofbiz.common.CommonEvents" invoke="loadJWT"/>
         <response name="success" type="none" />
         <response name="error" type="none" />
@@ -361,7 +361,7 @@ under the License.
     <view-map name="ShowDocument" type="screen" page="component://common/widget/HelpScreens.xml#showDocument"/>
 
     <view-map name="viewBlocked" type="screen" page="component://common/widget/CommonScreens.xml#viewBlocked"/>
-    
+
     <view-map name="LookupGeo" type="screen" page="component://common/widget/LookupScreens.xml#LookupGeo"/>
     <view-map name="LookupGeoName" type="screen" page="component://common/widget/LookupScreens.xml#LookupGeoName"/>
     <view-map name="LookupLocale" type="screen" page="component://common/widget/LookupScreens.xml#LookupLocale"/>