Quick Tip: Testing Python Social Authby@pizzapanther
1,070 reads

Quick Tip: Testing Python Social Auth

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

Too Long; Didn't Read

Python Social Auth is a great library to integrate 3rd party logins into your web application. Here is a quick way to test without having to mock HTTP calls or hit live external endpoints. The test is based off of Github so you may need to override more methods for other backends. The first one overrides state validation so we can use made up tokens. The second overrides fetching data about the user so we don't need to make external calls. Test redirect to third party site. Simulate successful return and verify account is created and/or logged in.

Company Mentioned

Mention Thumbnail
featured image - Quick Tip: Testing Python Social Auth
Paul Bailey HackerNoon profile picture

@pizzapanther

Paul Bailey


Receive Stories from @pizzapanther

react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa