[ 
https://issues.apache.org/jira/browse/SLING-175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12560700#action_12560700
 ] 

Alexander Klimetschek commented on SLING-175:
---------------------------------------------

The trick is to do the login with a dummy login XHR request in the background. 
If it works, the credentials stay cached in the browser and are then used for 
normal browser requests. It's a bit tricky, but we also got an logout to work 
(sending invalid credentials in an XHR to "reset" the browser).

See those files:

server-side servlet filter:

http://www.mindquarry.org/repos/mindquarry-collaboration-server/trunk/mindquarry-teamspace/mindquarry-users/src/main/java/com/mindquarry/user/webapp/AuthenticationFilter.java

client-side javascript:

http://www.mindquarry.org/repos/mindquarry-collaboration-server/trunk/mindquarry-webapp/mindquarry-webapp-resources/src/main/resources/COB-INF/scripts/dojo/mindquarry/lib/auth.js

http://www.mindquarry.org/repos/mindquarry-collaboration-server/trunk/mindquarry-webapp/mindquarry-webapp-resources/src/main/resources/COB-INF/scripts/dojo/mindquarry/widget/LoginForm.js

http://www.mindquarry.org/repos/mindquarry-collaboration-server/trunk/mindquarry-webapp/mindquarry-webapp-resources/src/main/resources/COB-INF/scripts/dojo/mindquarry/widget/LogoutLink.js


> support for form-based authentication
> -------------------------------------
>
>                 Key: SLING-175
>                 URL: https://issues.apache.org/jira/browse/SLING-175
>             Project: Sling
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Michael Marth
>            Priority: Minor
>
> Currently, Sling supports Basic Auth for authentication (and corresponding 
> mapping of users and rights to the underlying repository). I would like to 
> request that we can also have form-based authentication.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to