vendredi 17 juillet 2015

Spring Security Basic Authentication in Weblogic by using Adapter

I have an application which needs 2 security http tags to be deployed in weblogic 10.3.6 server: 1, Form-based-Login: for direct logging in by users using login page. 2. Basic Authentication: Rest WebService calls.

I have added FORM_BASED_LOGIN successfully. For Basic Authentication : Weblogic pops-up an additional pop-up where I have to enter the credentials of weblogic console.

To fix this I have found 2 approaches: 1. Updating the server config.xml file with the below tag:

<enforce-valid-basic-auth-credentials>false</enforce-valid-basic-auth-credentials>

Reference: Spring Security HTTP Basic Authentication

  1. Adding an adapter and applicationContext-acegi-security.xml and WeblogicAuthenticationFilter

I like to do the 2nd approach as it does not involve any changes to server configuration. It would be great if any one could point me in the right direction or an example to achieve this.

Reference: http://ift.tt/1Okcdr9

Thanks in Advance.

Aucun commentaire:

Enregistrer un commentaire