[PR #247] [MERGED] Fix OAuth authentication #243

Closed
opened 2026-02-25 20:35:02 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/B16f00t/whapa/pull/247
Author: @davispuh
Created: 12/10/2025
Status: Merged
Merged: 12/11/2025
Merged by: @B16f00t

Base: masterHead: master


📝 Commits (3)

  • 66a4cfe Backport a4cad3a: urllib3 >= 2.0 uses system default ciphers
  • 9aa94a3 Backport 8a52124: Add support for logging in via an OAuth token
  • 2355737 Fix OAuth authentication

📊 Changes

2 files changed (+79 additions, -3 deletions)

View changed files

📝 libs/gpsoauth/__init__.py (+63 -1)
📝 libs/whagodri.py (+16 -2)

📄 Description

Currently OAuth authentication is broken.

You will always get {'Error': 'Unknown'}

This PR fixes that.
See https://github.com/simon-weber/gpsoauth?tab=readme-ov-file#alternative-flow

This PR also backports these:

gpsoauth.perform_oauth() needs master token and not OAuth token.

Password authentication / perform_master_login() is also broken as I couldn't get it to work so I'm not fixing it and leaving it as is (broken).

If someone figures that out then you should drop included gpsoauth and just use upstream https://github.com/simon-weber/gpsoauth


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/B16f00t/whapa/pull/247 **Author:** [@davispuh](https://github.com/davispuh) **Created:** 12/10/2025 **Status:** ✅ Merged **Merged:** 12/11/2025 **Merged by:** [@B16f00t](https://github.com/B16f00t) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (3) - [`66a4cfe`](https://github.com/B16f00t/whapa/commit/66a4cfef069d347be577532e43d705f21708d500) Backport a4cad3a: urllib3 >= 2.0 uses system default ciphers - [`9aa94a3`](https://github.com/B16f00t/whapa/commit/9aa94a3fcc7cd48618ca0976054110b0ccba40fe) Backport 8a52124: Add support for logging in via an OAuth token - [`2355737`](https://github.com/B16f00t/whapa/commit/23557373b3063d58fc7780cff8b5fdc0304d2d8f) Fix OAuth authentication ### 📊 Changes **2 files changed** (+79 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `libs/gpsoauth/__init__.py` (+63 -1) 📝 `libs/whagodri.py` (+16 -2) </details> ### 📄 Description Currently OAuth authentication is broken. You will always get `{'Error': 'Unknown'}` This PR fixes that. See https://github.com/simon-weber/gpsoauth?tab=readme-ov-file#alternative-flow This PR also backports these: * https://github.com/simon-weber/gpsoauth/commit/a4cad3a9744b36d9aa272719ae2a701ffee8dfd5 * https://github.com/simon-weber/gpsoauth/commit/8a5212481f80312e06ba6e0a29fbcfca1f210fd1 `gpsoauth.perform_oauth()` needs `master token` and not OAuth token. Password authentication / `perform_master_login()` is also broken as I couldn't get it to work so I'm not fixing it and leaving it as is (broken). If someone figures that out then you should drop included `gpsoauth` and just use upstream https://github.com/simon-weber/gpsoauth --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-25 20:35:02 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/whapa#243
No description provided.