source: TI12-security/trunk/python/ndg.security.server/ndg/security/server/authnservice/myproxyauthn.py @ 4384

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/python/ndg.security.server/ndg/security/server/authnservice/myproxyauthn.py@4384
Revision 4384, 1.3 KB checked in by pjkersha, 12 years ago (diff)

SessionMgr? -> SessionManager?

Line 
1"""
2MyProxy Client interface - extending the SessionManager AbstractAuthNService
3interface - to allow use with SessionManager
4
5NERC Data Grid Project
6"""
7__author__ = "C Byrom - Tessella"
8__date__ = "28/08/08"
9__copyright__ = "(C) 2008 STFC & NERC"
10__license__ = \
11"""This software may be distributed under the terms of the Q Public
12License, version 1.0 or later."""
13__contact__ = "P.J.Kershaw@rl.ac.uk"
14__revision__ = '$Id: $'
15
16from ndg.security.server.sessionmanager import AbstractAuthNService
17from ndg.security.common.myproxy import MyProxyClient
18
19class MyProxyAuthN(AbstractAuthNService):
20    '''Provide an Authentication interface to the Session Manager utilising
21    MyProxy'''
22   
23    def __init__(self, propFilePath=None, **prop):
24        '''Instantiate MyProxy client object taking in settings from the
25        properties file'''
26        self._myProxyClnt = MyProxyClient(propFilePath=propFilePath)
27       
28    def logon(self, username, passphrase):
29        '''Implementation of AbstractAuthNService logon for a MyProxy client
30        @type username: basestring
31        @param username: username for account login
32        @type passphrase: basestring
33        @param passphrase: passphrase (or password) for user account
34        '''
35        self._myProxyClnt.logon(username, password)
Note: See TracBrowser for help on using the repository browser.