You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2010/08/23 15:19:24 UTC

[jira] Updated: (SLING-1380) LoginModulePlugin should not implement getPrincipal method

     [ https://issues.apache.org/jira/browse/SLING-1380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger updated SLING-1380:
-------------------------------------

    Component/s: Authentication
                     (was: Extensions)

> LoginModulePlugin should not implement getPrincipal method
> ----------------------------------------------------------
>
>                 Key: SLING-1380
>                 URL: https://issues.apache.org/jira/browse/SLING-1380
>             Project: Sling
>          Issue Type: Bug
>          Components: Authentication
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>             Fix For: Form Based Authentication 1.0.0
>
>
> The LoginModulePlugin.getPrincipal method overrides the DefaultLoginModule.getPrincipal method to return a prinicipal for the authenticated user. The drawback when overwriting this is, that the DefaultLoginModule's implementation actually gets a Principal which is based on the Jackrabbit UserManager from the user name encoded in the Credentials object as returned by the getUserID(Credentials) method.
> Since the Form Based Authentication uses a SimpleCredentials the DefaultLoginModule can cope with this and nothing more is needed.

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