Module ImportFrom alias ImportFrom alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias Assign NameStore Call AttributeLoad Call NameLoad Str attr NameLoad Assign NameStore Str ClassDef bases NameLoad body Expr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Str Str Str body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword Str keyword AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad NameLoad decorator_list ClassDef bases NameLoad body Assign NameStore ListLoad Str Str Str Str Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str NameLoad NameLoad keyword NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Return Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr If CompareIn Str AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str If NameLoad body Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If CompareIn Str AttributeLoad NameLoad attr body Assign NameStore Dict Str SubscriptLoad AttributeLoad NameLoad attr Index Str If CompareIn Str AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Return Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad If CompareNotEq AttributeLoad NameLoad attr Num body Return Assign NameStore Call AttributeLoad NameLoad attr If CompareIn Str NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign SubscriptStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Num Index Str Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad If CompareNotEq AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Assign NameStore Call NameLoad Call NameLoad AttributeLoad NameLoad attr Return Dict Str Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str decorator_list decorator_list
N/A __future__ absolute_import openid.extensions ax N/A requests requests_oauthlib OAuth1 pyramid.security NO_PERMISSION_REQUIRED api register_provider compat parse_qsl oid_extensions OAuthRequest oid_extensions UIRequest openid attributes OpenIDAuthenticationComplete OpenIDConsumer N/A log N/A N/A N/A __import__ logging getLogger __name__ N/A GOOGLE_OAUTH https://www.google.com/accounts/OAuthGetAccessToken GoogleAuthenticationComplete N/A OpenIDAuthenticationComplete N/A N/A Google auth complete N/A includeme N/A N/A config N/A N/A N/A Activate the ``google_hybrid`` Pyramid plugin via
    ``config.include('velruse.providers.google_hybrid')``. After included,
    a new method will be available to configure new providers.

    ``config.add_google_hybrid_login()``
        See :func:`~velruse.providers.google_hybrid.add_google_login`
        for the supported options.

     N/A N/A N/A config add_directive add_google_hybrid_login add_google_login N/A add_google_login N/A N/A config attrs realm storage consumer_key consumer_secret scope login_path callback_path name N/A None None None None None None /login/google /login/google/callback google N/A N/A 
    Add a Google login provider to the application using the OpenID+OAuth
    hybrid protocol.  This protocol can be configured for purely
    authentication by specifying only OpenID parameters. If you also wish
    to authorize your application to access the user's information you
    may specify OAuth credentials.

    - OpenID parameters
      + ``attrs``
      + ``realm``
      + ``storage``
    - OAuth parameters
      + ``consumer_key``
      + ``consumer_secret``
      + ``scope``
     N/A provider N/A GoogleConsumer name attrs realm storage consumer_key consumer_secret scope N/A N/A N/A config add_route N/A provider login_route login_path N/A N/A N/A config add_view provider attr login route_name N/A provider login_route permission NO_PERMISSION_REQUIRED N/A N/A N/A config add_route N/A provider callback_route callback_path use_global_views True factory N/A provider callback N/A N/A register_provider config name provider N/A GoogleConsumer N/A OpenIDConsumer N/A N/A openid_attributes N/A country email first_name last_name language __init__ N/A N/A self name attrs realm storage oauth_key oauth_secret oauth_scope N/A None None None None None None N/A N/A Handle Google Auth

        This also handles making an OAuth request during the OpenID
        authentication.

         N/A N/A N/A OpenIDConsumer __init__ self name google_hybrid realm storage context GoogleAuthenticationComplete N/A N/A self oauth_key oauth_key N/A N/A self oauth_secret oauth_secret N/A N/A self oauth_scope oauth_scope N/A N/A attrs None N/A N/A N/A self openid_attributes attrs N/A _lookup_identifier N/A N/A self request identifier N/A N/A N/A Return the Google OpenID directed endpoint N/A https://www.google.com/accounts/o8/id N/A _update_authrequest N/A N/A self request authrequest N/A N/A N/A Update the authrequest with Attribute Exchange and optionally OAuth

        To optionally request OAuth, the request POST must include an
        ``oauth_scope`` parameter that indicates what Google Apps should have
        access requested.

         N/A ax_request N/A N/A ax FetchRequest N/A attr N/A self openid_attributes N/A N/A N/A N/A ax_request add N/A N/A ax AttrInfo N/A attributes N/A attr required True N/A N/A N/A authrequest addExtension ax_request N/A oauth_scope N/A self oauth_scope N/A N/A oauth_scope N/A request POST N/A N/A oauth_scope N/A N/A request POST N/A oauth_scope N/A oauth_scope N/A N/A oauth_request N/A OAuthRequest consumer N/A self oauth_key scope oauth_scope N/A N/A N/A authrequest addExtension oauth_request N/A N/A popup_mode N/A request POST N/A N/A kw_args N/A mode N/A N/A request POST N/A popup_mode N/A N/A popup_icon N/A request POST N/A N/A N/A kw_args N/A icon N/A N/A request POST N/A popup_icon N/A ui_request N/A UIRequest kw_args N/A N/A N/A authrequest addExtension ui_request N/A _update_profile_data N/A N/A self request profile credentials N/A N/A N/A Update the user data with profile information from Google Contacts

        This only works if the oauth_scope included access to Google Contacts
        i.e. the scope needs::

            http://www-opensocial.googleusercontent.com/api/people

         N/A N/A N/A self oauth_key None N/A N/A N/A oauth N/A OAuth1 N/A self oauth_key client_secret N/A self oauth_secret resource_owner_key N/A credentials N/A oauthAccessToken resource_owner_secret N/A credentials N/A oauthAccessTokenSecret N/A profile_url https://www-opensocial.googleusercontent.com/api/people/@me/@self N/A resp N/A N/A requests get profile_url auth oauth N/A N/A N/A resp status_code 200 N/A N/A N/A data N/A N/A resp json N/A N/A entry data N/A N/A N/A N/A profile update N/A data N/A entry N/A N/A N/A N/A profile N/A accounts N/A 0 N/A userid N/A N/A profile pop id None N/A _get_access_token N/A N/A self request_token N/A N/A N/A Retrieve the access token if OAuth hybrid was used N/A oauth N/A OAuth1 N/A self oauth_key client_secret N/A self oauth_secret resource_owner_key request_token N/A resp N/A N/A requests post GOOGLE_OAUTH auth oauth N/A N/A N/A resp status_code 200 N/A N/A N/A N/A log error OAuth token validation failed. Status: %d, Content: %s N/A resp status_code N/A resp content N/A N/A access_token N/A dict N/A parse_qsl N/A resp text N/A N/A oauthAccessToken oauthAccessTokenSecret N/A access_token N/A oauth_token N/A access_token N/A oauth_token_secret N/A N/A