frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Show HN: Oauth2_capture – A Django package for handling OAuth2 token flows

3•simplecto•17h ago
I've created oauth2_capture (https://github.com/heysamtexas/django-oauth2-capture/), a Django package that makes it easy to capture, store, and refresh OAuth2 tokens from multiple providers.

The package currently supports Twitter/X, LinkedIn, GitHub, Reddit, Pinterest, and Facebook, with more providers planned. It handles the entire OAuth2 flow, from authorization to token storage and automatic refreshing.

Key technical features:

  * PKCE support for providers that require it
  * Token refresh with retry logic for rate limiting (429 responses)
  * Clean Django models and admin integration
  * Proper token expiration handling
I built this because I kept reimplementing OAuth2 flows in different projects and wanted a reusable solution. The package is designed to be easily extended to support additional providers.

I'd love feedback from the community on the API design, code quality, or additional features that would be useful.

Yes, Allauth does a great job of oauth and user signups/management. This is not that.

When to use oauth2_capture

Choose oauth2_capture when your application needs to:

  * Post to social media platforms on behalf of users
  * Access provider APIs (GitHub, LinkedIn, etc.) using user permissions
  * Perform actions that require fresh OAuth tokens with specific scopes
  * Maintain long-term API access with automatic token refreshing
  * When to use django-allauth
Choose django-allauth when you primarily need:

  * Social authentication for user login
  * User registration and management
  * Email verification workflows
  * Account linking between social providers
Can they be used together?

Absolutely! You can use django-allauth for user authentication and oauth2_capture for API interactions. They solve different problems and complement each other well.

Simply put: django-allauth manages users, oauth2_capture manages tokens.

Little Language Lessons – Google Labs

https://labs.google/lll/en
1•claucambra•4m ago•0 comments

Trump To Sign EO Aimed at Lowering Drug Prices

https://www.wsj.com/politics/policy/trump-says-he-will-sign-executive-order-aimed-at-lowering-drug-prices-2a5b9b28
1•IG_Semmelweiss•5m ago•1 comments

Ask HN: Zer0 Browser – A Fast, Private Browser with Zero Bloat?

1•gokulnair2001•6m ago•0 comments

Netcetera used Clojure+Rama to 100x a product used by millions

https://blog.redplanetlabs.com/2025/04/22/how-gd-netcetera-used-rama-to-100x-the-performance-of-a-product-used-by-millions-of-people/
1•nathanmarz•9m ago•0 comments

India's Perfumers Recreate the Smell of Rain on Earth [video]

https://www.youtube.com/watch?v=LDrm4KQ1n_c
1•teleforce•10m ago•0 comments

I Don't Have Spotify

https://idonthavespotify.donado.co/
2•handfuloflight•12m ago•0 comments

Trump to sign executive order to cut prices of medicine to match other countries

https://www.reuters.com/business/healthcare-pharmaceuticals/trump-sign-executive-order-reducing-prescription-drug-prices-2025-05-11/
3•y1zhou•15m ago•2 comments

Ask HN: Pipelines with WASM Components

1•mootoday•20m ago•0 comments

Ocamlfind will not build on OS X Catalina if CLICOLOR=1

https://github.com/ocaml/ocamlfind/issues/40
1•transpute•24m ago•0 comments

Show HN: Nashville Lyric and Chord Chart Formatter

https://git.sr.ht/~curiositry/nashville-chord-chart-formatter
1•Curiositry•24m ago•0 comments

About Green Screens and mouse-clickable UIs

https://try-as400.pocnet.net/wiki/About_Green_Screens_and_mouse-clickable_UIs
3•nivethan•29m ago•0 comments

Property Division Calculator – A California Divorce App

https://ca-divorce.streamlit.app
2•rachelgreenai•30m ago•0 comments

Ask HN: Cursor or Windsurf?

8•skarat•37m ago•0 comments

Best Sudoku Apps for iPhone

https://www.notevil.io/posts/best-sudoku-apps-for-iphone/
1•Intragalactic•37m ago•0 comments

AI Powered Energy Management Systems – Prospects and Challenges

https://arxiv.org/abs/2505.05498
1•nickevante•39m ago•1 comments

In defense of self-signed certificates (2013)

https://michael.orlitzky.com/articles/in_defense_of_self-signed_certificates.xhtml
5•1vuio0pswjnm7•50m ago•0 comments

Why are scheduling tools still so frustrating?

5•chetansorted•50m ago•2 comments

Show HN: Schezy – AI-Powered School Management System for Modern Education

https://www.schezy.com/
2•qareena•52m ago•0 comments

Alabamian with diabetes built her own artificial pancreas, gives away plan

https://www.al.com/news/huntsville/2017/05/daniel_lewis_built_her_own_art.html
4•MaysonL•55m ago•0 comments

Getting started with React component library

https://jinen83.github.io/react-component-library-vs-dronahq/
2•kinj28•57m ago•0 comments

Emotional Durability

http://oxs.335.myftpupload.com/2020/08/01/on-emotional-durability/
3•sixpackpg•59m ago•0 comments

Need an ops-do-it-all guy for your S25 startup?

3•JessePinkmanYo•1h ago•1 comments

Cursor: Security

https://simonwillison.net/2025/May/11/cursor-security/
1•thunderbong•1h ago•0 comments

Show HN: TaoPrompt – AI prompt generator that auto‐builds custom expert agents

https://taoprompt.com/guide
2•lucashaper•1h ago•0 comments

Reasons to Ignore CS Degrees

https://www.cio.com/article/3979014/12-reasons-to-ignore-computer-science-degrees.html
2•freebird00•1h ago•0 comments

White House announces U.S.-China trade deal, offers few details

https://www.cnbc.com/2025/05/11/us-china-trade-tariffs-talks.html
4•donsupreme•1h ago•1 comments

Do taxes fund spending? (2021)

https://crookedtimber.org/2021/09/17/do-taxes-fund-spending/
2•greyface-•1h ago•0 comments

Coffee shops ditch WiFi and laptops to limit remote work

https://www.axios.com/2025/05/09/coffee-shops-no-wifi-laptops-remote-work
2•paulpauper•1h ago•0 comments

AI Tool Library – Always Up to Date

https://tools.forwardfuture.ai/
1•danboarder•1h ago•0 comments

Zero ships from China are bound for California's top ports

https://www.cnn.com/2025/05/10/business/zero-ships-china-trade-ports-pandemic
4•paulpauper•1h ago•0 comments