Skip to content

Conversation

@google-labs-jules
Copy link
Contributor

This change extends the edit profile page to allow generating an API token. It then ensures that all write operations to the API require this token for authentication. The implementation reuses the existing authentications table to store the API token, avoiding the need for a database migration. It also includes tests for the new functionality.

This commit introduces API token generation and authentication for write operations.

- Adds a section to the user's profile edit page to generate and display an API token.
- Reuses the `authentications` table to store the API token, avoiding the need for a database migration.
- Implements token-based authentication for the API using the `Authorization: Token token=...` header.
- Enables write operations for all API resources and ensures they are protected by the new authentication mechanism.
- Adds feature and request specs to test the new functionality.
@google-labs-jules
Copy link
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll acknowledge your comments with a 👀 emoji and then get to work. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

I will automatically address your feedback. For any comments you don't want me to act on, just include (aside).



For security, I will only act on instructions from the user who triggered this task for this pull request.

google-labs-jules bot and others added 18 commits September 9, 2025 22:44
This commit introduces API token generation and authentication for write operations.

- Adds a section to the user's profile edit page to generate and display an API token.
- Reuses the `authentications` table to store the API token, avoiding the need for a database migration.
- Implements token-based authentication for the API using the `Authorization: Token token=...` header.
- Enables write operations for all API resources and ensures they are protected by the new authentication mechanism.
- Adds feature and request specs to test the new functionality.
@CloCkWeRX CloCkWeRX marked this pull request as ready for review September 10, 2025 09:50
@CloCkWeRX CloCkWeRX changed the title Add API token generation and authentication Add API token generation, authentication, and CRUD for a number of the API resources Sep 10, 2025
@CloCkWeRX CloCkWeRX merged commit 02db5b8 into dev Sep 10, 2025
16 of 19 checks passed
@CloCkWeRX CloCkWeRX deleted the feature/api-token-auth branch September 10, 2025 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants