Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ADF Security: #{securityContext.authenticated} returning false in new session

DeeptiBAug 6 2015 — edited Aug 13 2015

Hi All,

I am using JDev 11.1.2.4.0

I have enabled ADF security model of type ADF Authentication for my application.

In Web.xml, I have modified the settings as below

<login-config>

        <auth-method>CLIENT-CERT,FORM</auth-method>

        <form-login-config>

            <form-login-page>/faces/pages/xyz.jspx</form-login-page>

            <form-error-page>/faces/pages/ErrorPage.jspx</form-error-page>

        </form-login-config>

</login-config>

If I print the values of #{securityContext.authenticated} and #{securityContext.username}, first time when I access the application, the values are false and anonymous.

Subsequent access in the same window is returning values true and <username>.

Am I missing something. Please suggest.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 10 2015
Added on Aug 6 2015
18 comments
718 views