3 Replies Latest reply on Dec 27, 2012 8:53 AM by Alejandro Profet

    ADF Security

    raghav1212
      Hi ,

      after the login with the correct credentials i am getting the below error any suggestion .

      Error 401--Unauthorized

      From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:

      10.4.2 401 Unauthorized


      Thanks
      Raghav
        • 1. Re: ADF Security
          Arunkumar Ramamoorthy-Oracle
          Hi,

          Always mention your JDev version and explain your usecase better, so that others can understand and help you out.

          Are you using only Authentication or both Authentication and Authorization? If later, have you granted permission on the resultant page?

          -Arun
          • 2. Re: ADF Security
            raghav1212
            Hi ,

            I am using jdev 11.1.1.6.0 . Also using both authentication and authorization . Usecase is in the login page after user enters the login credentials which are assigned roles i need to take if success to the home page.


            Thanks
            Raghav
            • 3. Re: ADF Security
              Alejandro Profet
              Hi Raghav,

              Have you assigned the valid-users role in weblogic.xml?
              It should look like this:
              <security-role-assignment>
                 <role-name>valid-users</role-name>
                 <principal-name>users</principal-name>
              </security-role-assignment>
              See this article from Andrejus: http://andrejusb.blogspot.com/2009/01/practical-adf-security-deployment-on.html
              And this: http://docs.oracle.com/cd/E28271_01/web.1111/e28164/adding_security.htm#ADFFD19634

              AP