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/02/16 14:13:27 UTC

[jira] Resolved: (SLING-1382) Define means for an authentication handler to provide information on the implemented authentication type

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

Felix Meschberger resolved SLING-1382.
--------------------------------------

    Resolution: Fixed

Defined constants and implemented support in Rev. 910509.

Note, that this is only for the new o.a.s.commons.auth.spi.AuthenticationHandler interface. There is no equivalent support for the backwards compatibility, deprecated, o.a.s.engine.auth.AuthenticationHandler interface.

> Define means for an authentication handler to provide information on the implemented authentication type
> --------------------------------------------------------------------------------------------------------
>
>                 Key: SLING-1382
>                 URL: https://issues.apache.org/jira/browse/SLING-1382
>             Project: Sling
>          Issue Type: New Feature
>          Components: Commons
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>             Fix For: Commons Auth 1.0.0
>
>
> The AuthenticationHandler interface should be extended with the following two constants:
>     /**
>      * The name of the service registration property (single string) providing
>      * the authentication type of authentication handler. This is the same value
>      * as will be returned as the {@link AuthenticationInfo#getAuthType()
>      * authentication type} returned by the
>      * {@link #extractCredentials(HttpServletRequest, HttpServletResponse)}
>      * method.
>      * <p>
>      * <p>
>      * This property is optional but allows the client to optionally select the
>      * authentication handler which will actually request credentials upon the
>      * {@link #requestCredentials(HttpServletRequest, HttpServletResponse)}
>      * method.
>      *
>      * @see #REQUEST_LOGIN_PARAMETER
>      */
>     static final String TYPE_PROPERTY = "authtype";
>     /**
>      * The request parameter which may be used to explicitly select an
>      * authentication handler by its {@link #TYPE_PROPERTY type} if
>      * authentication will be requested through
>      * {@link #requestCredentials(HttpServletRequest, HttpServletResponse)}.
>      *
>      * @see #requestCredentials(HttpServletRequest, HttpServletResponse)
>      * @see #TYPE_PROPERTY
>      */
>     static final String REQUEST_LOGIN_PARAMETER = "sling:authRequestLogin";
> This allows for client-side selection of a concrete authentication handler to use for requesting credentials and also to inquire about authentication types of registered authentication handlers.

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