Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Return Call NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str handlers ExceptHandler type NameLoad body Return Call NameLoad Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str handlers ExceptHandler type TupleLoad NameLoad NameLoad body Return Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call NameLoad Str decorator_list NameLoad
N/A N/A OAuth views django.conf settings django.contrib.auth.decorators login_required django.http HttpResponseBadRequest django.shortcuts redirect requests_oauthlib OAuth2Session buildservice.models OAuthToken Repository login N/A N/A request N/A N/A N/A 
    Step 1 of OAuth: redirect to provider.
     N/A github N/A OAuth2Session N/A settings GITHUB_CLIENT_ID scope N/A settings GITHUB_SCOPES N/A N/A authorization_url state N/A N/A github authorization_url N/A settings GITHUB_AUTHORIZATION_BASE_URL N/A N/A N/A request session N/A oauth_state state N/A N/A redirect authorization_url N/A login_required callback N/A N/A request N/A N/A N/A 
    Step 2 of OAuth: fetch the token.
     N/A N/A N/A oauth_state N/A N/A request session N/A oauth_state N/A N/A N/A KeyError N/A N/A N/A HttpResponseBadRequest Missing oauth state. N/A github N/A OAuth2Session N/A settings GITHUB_CLIENT_ID state oauth_state N/A token N/A N/A github fetch_token N/A settings GITHUB_TOKEN_URL client_secret N/A settings GITHUB_CLIENT_SECRET authorization_response N/A N/A request build_absolute_uri N/A N/A N/A N/A N/A N/A OAuthToken objects create user N/A request user value N/A token N/A access_token N/A N/A N/A N/A KeyError TypeError N/A N/A N/A HttpResponseBadRequest Cannot read access_token. N/A N/A N/A Repository add_user_to_known_repositories N/A request user N/A N/A redirect home N/A login_required