user_server Module

Base handler for frontend handlers that need sessions.

Notes

Derived from simpleauth/examples/handlers.py and subject to the MIT License.

Some parts of FrontendHandler adapted from webapp2_extras.auth and subject to the Apache License (see LICENSE file).

class user_server.AuthHandler(request, response)[source]

Bases: frontend_handler.FrontendHandler, simpleauth.handler.SimpleAuthHandler

Authentication handler for OAuth 2.0, 1.0(a) and OpenID.

OAUTH2_CSRF_STATE = True
USER_ATTR = {'windows_live': {'avatar_url': 'avatar_url', 'name': 'name'}, 'openid': {'avatar_url': <function <lambda> at 0x07E26F70>, 'link': 'email', 'name': 'nickname'}, 'google': {'avatar_url': 'picture', 'link': 'link', 'name': 'name'}, 'twitter': {'avatar_url': 'profile_image_url_https', 'link': 'link', 'name': 'name'}, 'linkedin': {'avatar_url': 'picture-url', 'link': 'public-profile-url', 'name': <function <lambda> at 0x07E26E70>}, 'foursquare': {'avatar_url': <function <lambda> at 0x07E26F30>, 'link': <function <lambda> at 0x07E26EF0>, 'name': <function <lambda> at 0x07E26EB0>}, 'facebook': {'avatar_url': <function <lambda> at 0x07E26E30>, 'link': 'link', 'name': <function <lambda> at 0x07E26DF0>}}
login_required()[source]
logout()[source]

Table Of Contents

Previous topic

test_auth_data Module

Next topic

user_server_test Module

This Page