Skip to content
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

[KTP-64] Refactor OAuth Workflow - Move OAuth to Frontend #34

Merged
merged 7 commits into from
Dec 18, 2024

Conversation

Elshaarawy-1
Copy link
Collaborator

Refactored the OAuth implementation by shifting the authentication process from the backend to the frontend. Now, the frontend handles the OAuth flow, retrieves the access token, and sends it to the backend for validation. The backend validates the token, creates or retrieves the user, and generates a new token for the user to continue using the application securely. This improves separation of concerns and aligns with modern OAuth best practices.

@Elshaarawy-1 Elshaarawy-1 changed the base branch from main to devel December 18, 2024 00:31
Copy link

github-actions bot commented Dec 18, 2024

Code Coverage Summary

Overall Project 85.89% -2.92% 🍏
Files changed 55.15%

File Coverage
SecurityConfig.java 100% 🍏
AuthController.java 78.01% -21.99%
UserService.java 3.06% -43.88%

@ahmedyoussefg
Copy link
Owner

Please write some tests to bump up the code coverage

Copy link
Collaborator

@MoustafaAmer12 MoustafaAmer12 left a comment

Choose a reason for hiding this comment

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

Fine!

@ahmedyoussefg ahmedyoussefg self-requested a review December 18, 2024 05:42
Copy link
Owner

@ahmedyoussefg ahmedyoussefg left a comment

Choose a reason for hiding this comment

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

Looks good to me

@ahmedayman4a ahmedayman4a merged commit 7231d6d into devel Dec 18, 2024
1 check passed
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.

4 participants