MCPcopy
hub / github.com/liangliangyy/DjangoBlog / oauthlogin

Function oauthlogin

oauth/views.py:48–57  ·  view source on GitHub ↗
(request)

Source from the content-addressed store, hash-verified

46
47
48def oauthlogin(request):
49 type = request.GET.get('type', None)
50 if not type:
51 return HttpResponseRedirect('/')
52 manager = get_manager_by_type(type)
53 if not manager:
54 return HttpResponseRedirect('/')
55 nexturl = get_redirecturl(request)
56 authorizeurl = manager.get_authorization_url(nexturl)
57 return HttpResponseRedirect(authorizeurl)
58
59
60def authorize(request):

Callers

nothing calls this directly

Calls 4

get_manager_by_typeFunction · 0.85
get_redirecturlFunction · 0.85
getMethod · 0.45
get_authorization_urlMethod · 0.45

Tested by

no test coverage detected