Revision 0e79735c snf-astakos-app/astakos/im/target/linkedin.py
b/snf-astakos-app/astakos/im/target/linkedin.py | ||
---|---|---|
55 | 55 |
from astakos.im import settings |
56 | 56 |
from astakos.im import auth_providers |
57 | 57 |
from astakos.im.target import add_pending_auth_provider, get_pending_key, \ |
58 |
handle_third_party_signup, handle_third_party_login |
|
58 |
handle_third_party_signup, handle_third_party_login, init_third_party_session
|
|
59 | 59 |
|
60 | 60 |
import astakos.im.messages as astakos_messages |
61 | 61 |
|
... | ... | |
77 | 77 |
@requires_auth_provider('linkedin', login=True) |
78 | 78 |
@require_http_methods(["GET", "POST"]) |
79 | 79 |
def login(request): |
80 |
init_third_party_session(request) |
|
80 | 81 |
resp, content = client.request(request_token_url, "GET") |
81 | 82 |
if resp['status'] != '200': |
82 | 83 |
messages.error(request, 'Invalid linkedin response') |
Also available in: Unified diff