# social-auth-app-django

> Python Social Authentication, Django integration.

- **URL**: https://www.freshcrate.ai/projects/social-auth-app-django
- **Author**: pypi
- **Category**: Security
- **Latest version**: `5.9.0` (2026-04-29)
- **License**: Unknown
- **Source**: https://github.com/python-social-auth/social-app-django/blob/master/CHANGELOG.md
- **Homepage**: https://pypi.org/project/social-auth-app-django/
- **Language**: Python
- **GitHub**: 2,132 stars, 394 forks
- **Registry**: pypi (`social-auth-app-django`)
- **Tags**: `auth`, `django`, `oauth`, `openid`, `pypi`, `saml`, `social`

## Description

# Python Social Auth - Django

Python Social Auth is an easy to setup social authentication/registration
mechanism with support for several frameworks and auth providers.

## Description

This is the [Django](https://www.djangoproject.com/) component of the
[python-social-auth ecosystem](https://github.com/python-social-auth/social-core),
it implements the needed functionality to integrate
[social-auth-core](https://github.com/python-social-auth/social-core)
in a Django based project.

## Django version

This project will focus on the currently supported Django releases as
stated on the [Django Project Supported Versions table](https://www.djangoproject.com/download/#supported-versions).

Backward compatibility with unsupported versions won't be enforced.

## Documentation

Project documentation is available at https://python-social-auth.readthedocs.io/.

## Setup

```shell
$ pip install social-auth-app-django
```

## Contributing

Contributions are welcome!

Only the core and Django modules are currently in development. All others are in maintenance only mode, and maintainers are especially welcome there.

See the [CONTRIBUTING.md](https://github.com/python-social-auth/.github/blob/main/CONTRIBUTING.md) document for details.

## Versioning

This project follows [Semantic Versioning 2.0.0](https://semver.org/spec/v2.0.0.html).

## License

This project follows the BSD license. See the [LICENSE](LICENSE) for details.

## Donations

This project welcomes donations to make the development sustainable, you can fund Python Social Auth on following platforms:

- [GitHub Sponsors](https://github.com/sponsors/python-social-auth/)
- [Open Collective](https://opencollective.com/python-social-auth)

## Recent releases

| Version | Date | Urgency | Changes |
| --- | --- | --- | --- |
| `5.9.0` | 2026-04-29 | High | ### Changed  - Added async support to `SocialAuthExceptionMiddleware` - Dropped support for Django 5.1, Django 5.2 is now the minimum supported version - Loosened the `social-auth-core` dependency to allow compatible 4.x releases - Improved release automation and GitHub release asset publishing |
| `5.8.0` | 2026-04-21 | Low | Imported from PyPI (5.8.0) |
| `5.7.0` | 2025-12-18 | Low | ### Changed  - Integrated with `social_core` using registry instead of monkey patching it  ### Donations  This project welcomes donations to make the development sustainable. The following platforms are available for funding Python Social Auth:  - [GitHub Sponsors](https://github.com/sponsors/python-social-auth/) - [Open Collective](https://opencollective.com/python-social-auth) |
| `5.6.0` | 2025-10-09 | Low | ### Changed  - Fixed possibly unsafe account association ([CVE-2025-61783](https://github.com/python-social-auth/social-app-django/security/advisories/GHSA-wv4w-6qv2-qqfg)) - Storage now filters for active users, you might need to customize `SOCIAL_AUTH_ACTIVE_USERS_FILTER` if your custom model does not have the `is_active` field  ### Added  - Django 6.0 and Python 3.14 compatibility - Type annotations - LoginRequiredMiddleware compatibility - `RAISE_EXCEPTIONS` and `LOGIN_ERROR_URL` c |
| `5.5.1` | 2025-06-27 | Low | ### Changed  - Fixed authentication with OpenID based services  ### Donations  This project welcomes donations to make the development sustainable, you can fund Python Social Auth on the following platforms:  - [GitHub Sponsors](https://github.com/sponsors/python-social-auth/) - [Open Collective](https://opencollective.com/python-social-auth) |
| `5.5.0` | 2025-06-27 | Low | ### Changed  - Dropped support for older Django versions. - Added non-empty constraint on `uid`. - Added support for session restore with stricter SameSite cookie policy.  ### Donations  This project welcomes donations to make the development sustainable, you can fund Python Social Auth on the following platforms:  - [GitHub Sponsors](https://github.com/sponsors/python-social-auth/) - [Open Collective](https://opencollective.com/python-social-auth) |
| `5.4.3` | 2025-02-13 | Low | ## What's Changed * deps: Update supported Python versions by @a-grealish in https://github.com/python-social-auth/social-app-django/pull/621 * Fixed rollback of extra_data migration by @niklas-scholz in https://github.com/python-social-auth/social-app-django/pull/626 * Modernize the build by @offbyone in https://github.com/python-social-auth/social-app-django/pull/641 * fix(ci): test django main only on Python 3.12+ by @nijel in https://github.com/python-social-auth/social-app-django/pull/6 |
| `5.4.2` | 2024-07-12 | Low | ## What's Changed - Fixed `UserSocialAuth` creation by allowing `JSONField` to be blank - Fixed the assumption that UID can only be an integer (#571)  ## New Contributors * @i-zhivetiev made their first contribution in https://github.com/python-social-auth/social-app-django/pull/572 * @arjunadeltoso made their first contribution in https://github.com/python-social-auth/social-app-django/pull/580  **Full Changelog**: https://github.com/python-social-auth/social-app-django/compare/5.4.1... |
| `5.4.1` | 2024-04-24 | Low | ### Changed - Added reverse migration for JSON field - Fixed improper handling of case sensitivity with MySQL/MariaDB ([CVE-2024-32879](https://github.com/python-social-auth/social-app-django/security/advisories/GHSA-2gr8-3wc7-xhj3)) |
| `5.4.0` | 2023-10-17 | Low | ### Changed - Improved JSON field migration performance - Introduce configuration to request POST only requests for social authentication - Updated list of supported Django and Python versions |

## Citation

- HTML: https://www.freshcrate.ai/projects/social-auth-app-django
- Markdown: https://www.freshcrate.ai/projects/social-auth-app-django.md
- Dependencies JSON: https://www.freshcrate.ai/api/projects/social-auth-app-django/deps

_Generated by freshcrate.ai. Indexes pypi releases for AI-agent ecosystem packages._
