add VK ID backend#1743
Conversation
|
Can you please also add documentation to https://github.com/python-social-auth/social-docs? |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1743 +/- ##
==========================================
+ Coverage 83.90% 83.93% +0.02%
==========================================
Files 341 341
Lines 12109 12230 +121
Branches 575 584 +9
==========================================
+ Hits 10160 10265 +105
- Misses 1742 1750 +8
- Partials 207 215 +8
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
Adds a new VKIDOAuth2 OAuth2 backend (vk-id) to support VK’s newer “VK ID” integration (PKCE, device_id, and optional JSON payload callback handling) while keeping the legacy vk-oauth2 backend unchanged.
Changes:
- Introduces
VKIDOAuth2backend with VK ID endpoints, PKCE (code_challenge/code_verifier),device_idhandling, andpayloadcallback parsing. - Adds comprehensive backend tests covering standard callback params and
payload-based callbacks. - Updates
CHANGELOG.mdto note the new backend.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| social_core/backends/vk.py | Adds the VKIDOAuth2 backend implementation (VK ID endpoints, PKCE, payload parsing, device/user info handling). |
| social_core/tests/backends/test_vk.py | Adds test coverage for the new backend, including PKCE + device_id assertions and payload callback flow. |
| CHANGELOG.md | Documents the addition of the VK ID OAuth2 backend. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Summary
Adds a new
VKIDOAuth2backend for VK ID under the backend namevk-id.VK has moved newer integrations to VK ID, which differs from the existing legacy
vk-oauth2backend:id.vk.ruauthorization/token/user-info endpointscode_challenge/code_verifierdevice_idduring code exchangepayloadThe existing
VKOAuth2backend andvk-oauth2provider name are left unchanged for backward compatibility.Docs