c.l.b.o.OAuthAuthorizeTokenView(LaunchpadFormView, JSONTokenMixin) : class documentation

Part of canonical.launchpad.browser.oauth View In Hierarchy

Where users authorize consumers to access Launchpad on their behalf.
Method visible_actions Restrict the actions to the subset the client can make use of.
Method initialize Undocumented
Method render Undocumented
Method storeTokenContext Store the context given by the consumer in this view.
Method reviewToken Undocumented

Inherited from JSONTokenMixin:

Method getJSONRepresentation Return a JSON representation of the authorization policy.
@property
def visible_actions(self):
Restrict the actions to the subset the client can make use of.

Not all client programs can function with all levels of access. For instance, a client that needs to modify the dataset won't work correctly if the end-user only gives it read access. By setting the 'allow_permission' query variable the client program can get Launchpad to show the end-user an acceptable subset of OAuthPermission.

The user always has the option to deny the client access altogether, so it makes sense for the client to ask for the least access possible.

If the client sends nonsensical values for allow_permissions, the end-user will be given a choice among all the permissions used by normal applications.

def initialize(self):
Undocumented
def render(self):
Undocumented
def storeTokenContext(self):
Store the context given by the consumer in this view.
def reviewToken(self, permission):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2010-09-27 00:00:11.