You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shiro.apache.org by "Elhanan Maayan (JIRA)" <ji...@apache.org> on 2011/07/07 22:08:17 UTC

[jira] [Created] (SHIRO-311) allow the use of shiro as Autorization only framework

allow the use of shiro as Autorization only framework
-----------------------------------------------------

                 Key: SHIRO-311
                 URL: https://issues.apache.org/jira/browse/SHIRO-311
             Project: Shiro
          Issue Type: New Feature
          Components: Authentication (log-in), Authorization (access control) , Configuration, Integration: JEE
    Affects Versions: 1.1.0
         Environment: java 6 , active directory
            Reporter: Elhanan Maayan


currently shiro uses login as the only entry point to the application which uses authentication and authorization procedures, defined in the chosen subclasses realm.
however in many organization's intranet , a domain authentication is already employed making the authentication process in shiro redundant.

in order to keep consistency with the framework, a new type of Token should be created called AuthenticatedToken. the difference is  shiro would be able to create such a token in it's filter by inspecting getRemoteUer of the HTTP request, which according to the spec is !=null only when the user is authenticated. 


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (SHIRO-311) allow the use of shiro as Autorization only framework

Posted by "Les Hazlewood (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SHIRO-311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13061671#comment-13061671 ] 

Les Hazlewood commented on SHIRO-311:
-------------------------------------

Hi Elhanan,

What do you mean by this exactly?  Are you trying to support SPNEGO authentication for a Windows domain?

Shiro does in fact support authorization only - as long as the Subject has an identity - either from RememberMe or explicitly provided by the application developer - authorization will work fine (and authentication is not required).  Shiro's design intentionally made authentication orthogonal to authorization (and vice versa).

Some more detail (use cases, etc) or sample code would be appreciated to see what you are trying to do exactly.  I'm sure we can help support what you need!

Cheers,

Les


> allow the use of shiro as Autorization only framework
> -----------------------------------------------------
>
>                 Key: SHIRO-311
>                 URL: https://issues.apache.org/jira/browse/SHIRO-311
>             Project: Shiro
>          Issue Type: New Feature
>          Components: Authentication (log-in), Authorization (access control) , Configuration, Integration: JEE
>    Affects Versions: 1.1.0
>         Environment: java 6 , active directory
>            Reporter: Elhanan Maayan
>
> currently shiro uses login as the only entry point to the application which uses authentication and authorization procedures, defined in the chosen subclasses realm.
> however in many organization's intranet , a domain authentication is already employed making the authentication process in shiro redundant.
> in order to keep consistency with the framework, a new type of Token should be created called AuthenticatedToken. the difference is  shiro would be able to create such a token in it's filter by inspecting getRemoteUer of the HTTP request, which according to the spec is !=null only when the user is authenticated. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (SHIRO-311) allow the use of shiro as Autorization only framework

Posted by "Elhanan Maayan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SHIRO-311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13061782#comment-13061782 ] 

Elhanan Maayan commented on SHIRO-311:
--------------------------------------

i'm attempting to support a use where a use where authentication was allready done internaly. 

it started with learning how to use SSO with spnego as i investigated how to use JGSS api's to authenticate myself against active directory, with the idea of using the ticket recived, as the token for shiro.
after learning about the usage i discovered it wasn't really needed as SSO was being done at servlet filter level, so trying to use the api's would also be redundant and in-efficient (as authentication for each user would be done twice)

but still, it's a common use case and shiro should be able to support this more native way then letting users override realms and create no-op tokens by themselves. 

in my opinion the optimal solution for would extend it's existing servlet filter (or create a new one)  to do the this functionally as this http://spnego.sourceforge.net

although this does not over the desktop area. to my understanding nor is java http://stackoverflow.com/questions/545667/how-to-use-windows-login-for-single-sign-on-and-for-active-directory-entries-for 

in a more generic way, you could develop something like an SSORealm, and provide a default implementation using spnego and let users override id in special cases (jcifcs etc..)


> allow the use of shiro as Autorization only framework
> -----------------------------------------------------
>
>                 Key: SHIRO-311
>                 URL: https://issues.apache.org/jira/browse/SHIRO-311
>             Project: Shiro
>          Issue Type: New Feature
>          Components: Authentication (log-in), Authorization (access control) , Configuration, Integration: JEE
>    Affects Versions: 1.1.0
>         Environment: java 6 , active directory
>            Reporter: Elhanan Maayan
>
> currently shiro uses login as the only entry point to the application which uses authentication and authorization procedures, defined in the chosen subclasses realm.
> however in many organization's intranet , a domain authentication is already employed making the authentication process in shiro redundant.
> in order to keep consistency with the framework, a new type of Token should be created called AuthenticatedToken. the difference is  shiro would be able to create such a token in it's filter by inspecting getRemoteUer of the HTTP request, which according to the spec is !=null only when the user is authenticated. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira