mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frank van der Kleij (JIRA)" <j...@apache.org>
Subject [jira] Commented: (SSHD-109) Pass server session to FileSystemFactory.createFileSystemView
Date Thu, 03 Mar 2011 21:22:36 GMT

    [ https://issues.apache.org/jira/browse/SSHD-109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13002229#comment-13002229
] 

Frank van der Kleij commented on SSHD-109:
------------------------------------------

This is already part of 0.5.1-SNAPSHOT; please checkout the trunk.

> Pass server session to FileSystemFactory.createFileSystemView
> -------------------------------------------------------------
>
>                 Key: SSHD-109
>                 URL: https://issues.apache.org/jira/browse/SSHD-109
>             Project: MINA SSHD
>          Issue Type: Improvement
>    Affects Versions: 0.5.0
>            Reporter: Richard Evans
>            Priority: Minor
>
> In the integration of sshd with our application we have a PasswordAuthenticator implementation
which authenticates against our internal user database.  From this we derive an internal user
object which is needed for further permissions checking, etc in the file system view.  However
the createFileSystemView call takes a user name only.  If the ServerSession was passed to
createFileSystemView also, the user object could be stored in the session and retrieved when
the file system view is created. In the current system I have to store the user object in
a ThreadLocal and get it from there in createFileSystemView.
> This would require a custom session factory and session object - if the session had some
internal storage for private attributes, etc (rather like an HttpSession) this would not be
necessary.

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

        

Mime
View raw message