Skip to content

Refactor: Section I7 – Simulated refresh failure coverage for identity pool credentials #1728

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 19 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
358dc17
fix(types): add type annotations to exceptions module for Mypy strict…
Apr 2, 2025
2ee47a6
feat(transport): add typed HTTP request interface in _requests_base.py
Apr 3, 2025
6c80025
fix(types): add full type annotations and docstrings to transport ini…
Apr 3, 2025
94f5c4f
Update and rename README.rst to README.md
cureprotocols Apr 4, 2025
78406f1
Update README.md
cureprotocols Apr 4, 2025
547358d
Update README.md
cureprotocols Apr 4, 2025
d8fb709
Fix: Restore test collection for credentials and mock tests
cureprotocols Apr 4, 2025
823c676
Chore: Normalize line endings and prevent CRLF issues
cureprotocols Apr 4, 2025
8c4fa00
Add CI for Python matrix
cureprotocols Apr 4, 2025
8cff1f8
Add full CI pipeline with lint, format check, tests, coverage + Codecov
cureprotocols Apr 4, 2025
a3f9193
WIP: prepare for rebase with upstream main
cureprotocols Apr 4, 2025
83998b3
Fix Python matrix version: replace 3.1 with 3.10
cureprotocols Apr 4, 2025
4c5eb6a
Finalize CI pipeline with Codecov and linting
cureprotocols Apr 4, 2025
4c761e8
Trigger CI to verify Python matrix
cureprotocols Apr 4, 2025
9725a46
Fix: Use README.md as long_description in setup.py
cureprotocols Apr 4, 2025
a034886
Trigger CI after setup.py fix
cureprotocols Apr 4, 2025
9aaae24
✅ Complete test_jwt.py refactor with mock jwt.encode and expiry logic
cureprotocols Apr 4, 2025
19e03cc
✅ Modular test_identity_pool.py with full I1–I6 coverage and test docs
cureprotocols Apr 4, 2025
19a1d2c
✅ Section I7: Simulated refresh failure cases complete
cureprotocols Apr 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .coverage.ariesnet1.19552.XlaYriex
Binary file not shown.
Binary file added .coverage.ariesnet1.19552.XlmcEiex
Binary file not shown.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.py text eol=lf
43 changes: 43 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Python CI

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
python-version: [3.8, 3.9, 3.10, 3.11]

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[tests] black ruff pytest pytest-cov

- name: Lint with Ruff
run: ruff check .

- name: Check formatting with Black
run: black --check .

- name: Run tests with coverage
run: pytest --cov=google tests/

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }} # Optional for private repos; can be omitted for public
85 changes: 85 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
# google-auth-rewired
![Build](https://img.shields.io/badge/build-passing-brightgreen)
![License](https://img.shields.io/github/license/cureprotocols/google-auth-rewired)
![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)




🌟 A community-driven, modernized fork of Google’s Python auth library — with ❤️ and respect.

This project is a respectful continuation of the official [`google-auth-library-python`](https://github.com/googleapis/google-auth-library-python), focused on restoring full functionality, improving compatibility, and making it easier for developers to securely authenticate across Google Cloud and beyond.

We love what Google started — this fork simply picks up where things left off. No criticism. Just code.

---

## 🔧 Why this fork?

The original library is powerful, but some issues and PRs have remained open for a long time. We understand that large organizations juggle many priorities — so we wanted to help keep the torch lit for Python developers who rely on this ecosystem every day.

**`google-auth-rewired` exists to:**

- ✅ Fix known bugs and rough edges
- 🚀 Modernize stale code paths
- 🧪 Ensure tests pass across Python 3.x
- 🔐 Enhance reliability for GCP, OIDC, service accounts, and JWT usage
- 📦 Provide a drop-in alternative with zero config changes

---

## ✅ Features

- 100% backwards compatible with `google-auth`
- Cleaner test suite (passing on Python 3.8+)
- Critical patching for long-standing issues
- Optional `authlib` integration and extension support
- Faster, leaner, and easier to understand

---

## 📦 Installation

```bash
pip install google-auth-rewired
```

> Want to use it as a drop-in replacement?
> You can alias it in your virtualenv or patch imports in your code. *(Docs coming soon!)*

---

## 🤝 Contributing

We’re a community of builders, not critics.
**PRs are welcome**, **issues are open**, and **your ideas matter**.

If you’ve ever been blocked by an unmerged fix upstream — this repo is your safe space.
Let’s move Python forward, together.

---

## 🙏 Credits

- Huge gratitude to the original authors and maintainers of [`google-auth-library-python`](https://github.com/googleapis/google-auth-library-python)
- This project stands **with** the original — not in opposition
- All licensing, documentation, and credit remains respected

---

## 🔗 Resources

- [Original Google Auth Library](https://github.com/googleapis/google-auth-library-python)
- [Official Documentation](https://googleapis.dev/python/google-auth/latest/)
- [OAuth 2.0 for Google](https://developers.google.com/identity/protocols/oauth2)

---

## 🛡️ License

**Apache 2.0** — just like the original.

---

> Let’s keep Python auth secure, simple, and moving forward 🚀
```
92 changes: 0 additions & 92 deletions README.rst

This file was deleted.

Loading