Skip to content

Development: Add credential-based login and refactor authentication flow#32

Merged
az108 merged 26 commits intomainfrom
feature/credential-login
Nov 30, 2025
Merged

Development: Add credential-based login and refactor authentication flow#32
az108 merged 26 commits intomainfrom
feature/credential-login

Conversation

@JanaNF
Copy link
Copy Markdown
Collaborator

@JanaNF JanaNF commented Nov 24, 2025

Implement credential-based login functionality with JWT authentication and dynamic repository fetching using encrypted credentials. Refactor the StartAnalysis component to include username and password fields, and update the authentication flow diagram to reflect changes in the AuthController interactions. Remove unnecessary configurations and streamline the authentication process.

@JanaNF JanaNF requested review from Predixx, az108 and Copilot November 24, 2025 09:40
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR implements credential-based authentication for Artemis, enabling dynamic login with JWT tokens and encrypted credential storage. The authentication flow is refactored to support user-provided credentials instead of relying on configuration files.

Key changes:

  • New credential-based login endpoint with JWT authentication and encrypted password storage in cookies
  • Refactored repository fetching to use dynamic credentials passed through the authentication flow
  • Updated frontend to collect and submit user credentials (username, password, server URL)

Reviewed changes

Copilot reviewed 21 out of 22 changed files in this pull request and generated 12 comments.

Show a summary per file
File Description
src/main/java/de/tum/cit/aet/usermanagement/web/AuthController.java New authentication endpoint handling login and credential cookie creation
src/main/java/de/tum/cit/aet/core/security/CryptoService.java New encryption service for securing passwords in cookies
src/main/java/de/tum/cit/aet/repositoryProcessing/service/ArtemisClientService.java Added authentication method and updated to support dynamic server URLs
src/main/java/de/tum/cit/aet/repositoryProcessing/service/GitOperationsService.java Refactored to accept credentials as parameters instead of using config
src/main/webapp/src/components/StartAnalysis.tsx Added credential input fields and login flow
src/main/resources/config/application.yml Removed static Artemis credentials from configuration
src/main/java/de/tum/cit/aet/core/config/ArtemisConfig.java Removed static credential fields from configuration class
src/test/java/de/tum/cit/aet/DynamicAuthTest.java New test for dynamic authentication flow
.gitignore Added application.yml to prevent committing secrets

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link
Copy Markdown
Contributor

🤖 OpenAPI spec and client code auto-updated and committed.

@JanaNF JanaNF force-pushed the feature/credential-login branch from a4d7230 to 1078750 Compare November 24, 2025 10:06
@github-actions
Copy link
Copy Markdown
Contributor

🤖 OpenAPI spec and client code auto-updated and committed.

@ls1intum ls1intum deleted a comment from Copilot AI Nov 24, 2025
@github-actions
Copy link
Copy Markdown
Contributor

🤖 No OpenAPI or client changes needed.

@github-actions
Copy link
Copy Markdown
Contributor

🤖 No OpenAPI or client changes needed.

@github-actions
Copy link
Copy Markdown
Contributor

🤖 OpenAPI spec and client code auto-updated and committed.

@github-actions
Copy link
Copy Markdown
Contributor

🤖 No OpenAPI or client changes needed.

Copy link
Copy Markdown
Collaborator

@az108 az108 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some important points and questions

@github-actions
Copy link
Copy Markdown
Contributor

🤖 OpenAPI spec and client code auto-updated and committed.

@github-actions
Copy link
Copy Markdown
Contributor

🤖 No OpenAPI or client changes needed.

1 similar comment
@github-actions
Copy link
Copy Markdown
Contributor

🤖 No OpenAPI or client changes needed.

@JanaNF JanaNF requested a review from az108 November 29, 2025 11:39
Copy link
Copy Markdown
Collaborator

@az108 az108 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for applying the changes, looks great now 👍

@az108 az108 merged commit 47df92a into main Nov 30, 2025
8 checks passed
@az108 az108 deleted the feature/credential-login branch November 30, 2025 10:31
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.

3 participants