paint-brush
Quick Tip: Testing Python Social Authby@pizzapanther
1,102 reads
1,102 reads

Quick Tip: Testing Python Social Auth

by Paul Bailey2mAugust 17th, 2019
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

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
Paul Bailey

Paul Bailey

@pizzapanther

Father, web developer, and pizza maker; Software Entomologist @ Cognitive Space

Learn More
LEARN MORE ABOUT @PIZZAPANTHER'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Paul Bailey HackerNoon profile picture
Paul Bailey@pizzapanther
Father, web developer, and pizza maker; Software Entomologist @ Cognitive Space

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite