Oracle Analytics Cloud and Server

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

Users are trying to access Oracle HCM API but they are getting "Error 401 – Unauthorized”

Received Response
92
Views
1
Comments
Mahesh Sharma
Mahesh Sharma Rank 1 - Community Starter

When a user leave a session idle for about 30mins user gets Error 401 – Unauthorized instead of logging out. This issue occurs intermittently when user leave the page idle for say about 30mins. We are using jwt token generated on each click.

weblogic.xml:

<weblogic-application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

                      xsi:schemaLocation="http://xmlns.oracle.com/weblogic/weblogic-application http://xmlns.oracle.com/weblogic/weblogic-application/1.6/weblogic-application.xsd"

                      xmlns="http://xmlns.oracle.com/weblogic/weblogic-application">

 <security>

  <security-role-assignment>

       <role-name>user1</role-name>

       <principal-name>principle-outbound-xxx.org</principal-name>

       <principal-name>prinsName</principal-name>

       <principal-name>principle-outbound-xxx.org</principal-name>

 </security-role-assignment>

 </security>

 <listener>

  <listener-class>oracle.adf.share.weblogic.listeners.ADFApplicationStateListener</listener-class>

 </listener>

 <listener>

  <listener-class>oracle.mds.lcm.weblogic.WLLifecycleListener</listener-class>

 </listener>

 <library-ref>

  <library-name>adf.oracle.domain</library-name>

 </library-ref>

 <session-descriptor>

  <persistent-store-type>REPLICATED_IF_CLUSTERED</persistent-store-type>

 </session-descriptor>

 <fast-swap>

  <enabled>true</enabled>

 </fast-swap>

</weblogic-application>

----------------------------------------------------

adf-config.xml:

<adf-config xmlns="http://xmlns.oracle.com/adf/config" xmlns:config="http://xmlns.oracle.com/bc4j/configuration"

            xmlns:adf="http://xmlns.oracle.com/adf/config/properties">

  <adf-adfm-config xmlns="http://xmlns.oracle.com/adfm/config">

  <defaults changeEventPolicy="ppr" useBindVarsForViewCriteriaLiterals="true" useBindValuesInFindByKey="true"

       mapNegativeScaleToIntegerTypes="true" executeEmptyOnException="true" iteratorRowValidationFlag="false"/>

  <startup>

   <amconfig-overrides>

    <config:Database jbo.locking.mode="optimistic"/>

   </amconfig-overrides>

  </startup>

 </adf-adfm-config>

  <adf:adf-properties-child xmlns="http://xmlns.oracle.com/adf/config/properties">

  <adf-property name="adfAppUID" value="xyzWS-123"/>

 </adf:adf-properties-child>

      <adf-controller-config xmlns="http://xmlns.oracle.com/adf/controller/config">

  <adf-scope-ha-support>true</adf-scope-ha-support>

 </adf-controller-config>

</adf-config>


And we are configured in weblogic for 2-way SSL

Any inputs would be appreciate

Answers

  • Hi @User_5KKFY ,

    This does not look like an OBIEE issue.

    In OBIEE or OAS we never deal with weblogic.xml file or adf-config.xml .

    On accessing which page you are getting - Error401 – Unauthorized .

    What is the URL that you are using? Please provide a screen shot that includes URL. So, that we can guide you.

    Also based on your description, what I assume is - Your JWT token is getting expired.