1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# Copyright 2009 Canonical Ltd. This software is licensed under the
# GNU Affero General Public License version 3 (see the file LICENSE).
# pylint: disable-msg=E0213
"""Interface for the XML-RPC authentication server."""
__metaclass__ = type
__all__ = [
'IAuthServer',
'IAuthServerApplication',
]
from zope.interface import Interface
from lp.services.webapp.interfaces import ILaunchpadApplication
class IAuthServer(Interface):
"""A storage for details about users."""
def getUserAndSSHKeys(name):
"""Get details about a person, including their SSH keys.
:param name: The username to look up.
:returns: A dictionary {id: person-id, username: person-name, keys:
[(key-type, key-text)]}, or NoSuchPersonWithName if there is no
person with the given name.
"""
class IAuthServerApplication(ILaunchpadApplication):
"""Launchpad legacy AuthServer application root."""
|