-
Notifications
You must be signed in to change notification settings - Fork 163
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
Authentication – Refresh, persistence & API #681
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #681 +/- ##
==========================================
- Coverage 40.92% 40.75% -0.18%
==========================================
Files 525 539 +14
Lines 20880 21684 +804
==========================================
+ Hits 8546 8837 +291
- Misses 12334 12847 +513 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Jazak Allah khair, Mohannad!
I believe we need to refine the design of a few components to make them more reusable and minimize the chances of failure. Let me know if you have any questions or need clarification.
Thank you!
Data/AuthenticationClient/Sources/AuthentincationDataManager.swift
Outdated
Show resolved
Hide resolved
Data/AuthenticationClient/Sources/AuthentincationDataManager.swift
Outdated
Show resolved
Hide resolved
Data/AuthenticationClient/Sources/AuthentincationDataManager.swift
Outdated
Show resolved
Hide resolved
Data/AuthenticationClient/Sources/AuthentincationDataManager.swift
Outdated
Show resolved
Hide resolved
Data/AuthenticationClient/Sources/AuthentincationDataManagerImpl.swift
Outdated
Show resolved
Hide resolved
Data/AuthenticationClient/Tests/AuthentincationDataManagerTests.swift
Outdated
Show resolved
Hide resolved
Data/AuthenticationClient/Tests/AuthentincationDataManagerTests.swift
Outdated
Show resolved
Hide resolved
Data/AuthenticationClient/Tests/AuthentincationDataManagerTests.swift
Outdated
Show resolved
Hide resolved
@mohamede1945
There is one or two points that I've put off for now:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Jazak Allah khyran for the changes. This looks so great mashaa'Allah, just a couple more more changes and we should be good to merge inshaa'Allah.
Data/AuthenticationClient/Tests/AuthenticationClientTests.swift
Outdated
Show resolved
Hide resolved
Data/AuthenticationClient/Tests/AuthenticationClientTests.swift
Outdated
Show resolved
Hide resolved
Data/AuthenticationClient/Tests/AuthenticationClientTests.swift
Outdated
Show resolved
Hide resolved
Data/AuthenticationClient/Tests/AuthenticationClientTests.swift
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Mohannad a lot for such wonderful work.
Core/OAuthService/OAuthService.swift
Outdated
import Foundation | ||
import UIKit | ||
|
||
public struct OAuthServiceConfiguration { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this needs to be part of the API, does it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's practically a Parameters Object.
This PR should complete all the functionalities needed to handle the infrastructure of authentication, bar the logout API. This should be handled when adding the details of the login and profile UI.
Main Changes
Some Design Points