-
Notifications
You must be signed in to change notification settings - Fork 1
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
Feature/sign in #69
Merged
Merged
Feature/sign in #69
Changes from 27 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
bb33dae
fix: SignInUserInterface MOITWeb Interface dependency ์ถ๊ฐ
hope1053 e3bed94
feat: SignInWeb attach ๋ก์ง
hope1053 2f6f7ec
feat: cookie ๋ฐ token ์ฒ๋ฆฌ ๋ก์ง
hope1053 4180801
feat: ์ธ์ฆ ํ ๋ก์ง ์ฒ๋ฆฌ
hope1053 54ab6a3
feat: ๋ก๊ทธ์ธ ํ routing ๋ก์ง ๊ตฌํ ์ค
hope1053 62ffd8a
feat: Authorization ์งํ ํ HeaderField๊ฐ ์ ๋ฌ
hope1053 531b79d
feat: SignIn Dependency ์ถ๊ฐ
hope1053 926d752
feat: ํ์๊ฐ์
ํ์ง์์ ํ์ ์ธ์ฆ ์ข
๋ฃ ํ ํ์๊ฐ์
์ผ๋ก ์ด๋ ๋ก์ง
hope1053 a55daa3
feat: Dependency ์ถ๊ฐ
hope1053 8edab18
feat: SignIn, SignUp ์ฐ๊ฒฐ demoapp ๊ตฌํ
hope1053 b297a4a
fix: dependency ๋ฐ bundle version ์์
hope1053 f27a056
fix: MOITWeb detach์ memory leak ๋ฐ์ํ๋ ํ์ ์์
hope1053 c7c9dce
refactor: SignIn, SignUp โ Auth ๋ชจ๋๋ก ํฉ์น๋ ์์
์ค
hope1053 4036e21
refactor: SignIn, SignUp โ Auth ๋ชจ๋๋ก ํต์ผ
hope1053 8e2a759
remove: ์ฌ์ฉํ์ง์๋ ํ์ผ ์ญ์
hope1053 615236d
feat: SignInResponse SignUp RIB์ผ๋ก ์ ๋ฌ
hope1053 02274bc
feat: redirectURL ๋ฉ์๋ ๋ถ๋ฆฌ
hope1053 884f7ea
feat: TokenManager ๋ชจ๋ ์์ฑ
hope1053 2a9bed4
feat: TokenManagerImpl ๊ตฌํ
hope1053 00d8b4e
feat: TokenManager ๋ก์ง ๊ตฌํ
hope1053 2364117
fix: ์ฝ๋ ๊ฐ์
hope1053 c7de10f
fix: TODO ์ญ์
hope1053 7c598ef
fix: ์ฃผ์ ์ญ์
hope1053 4822b14
Squashed commit of the following:
hope1053 4242796
Squashed commit of the following:
hope1053 41eac9b
Merge branch 'develop' into feature/sign-in
hope1053 98fa3a3
Merge branch 'develop' into feature/sign-in
hope1053 01a3bf1
fix: router attach ๋ฐ ํ ๋น๊ณผ view present ์์ ๋ณ๊ฒฝ
hope1053 cd99eaa
feat: authorization token ๋น๊ฐ์ผ๋ก ์ค๋ ๊ฒฝ์ฐ errorAlert ๋์ฐ๋ ๋์ ์ถ๊ฐ
hope1053 5902acd
feat: SaveTokenUseCase ์ถ๊ฐ
hope1053 a4a0ca7
feat: token ์ ์ฅ ํ๋ก์ธ์ค UseCase๋ก ๋ถ๋ฆฌ
hope1053 d5e3609
Merge branch 'develop' into feature/sign-in
hope1053 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
Features/Auth/AuthDomain/Interface/Model/MOITSignInResponse.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// | ||
// MOITSignInResponse.swift | ||
// MOITWeb | ||
// | ||
// Created by ์ตํ๋ฆฐ on 2023/07/12. | ||
// Copyright ยฉ 2023 chansoo.MOIT. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
import WebKit | ||
|
||
public struct MOITSignInResponse { | ||
let providerUniqueKey: String | ||
let nickname: String | ||
let email: String | ||
|
||
public init( | ||
headerFields: [AnyHashable : Any] | ||
) { | ||
self.providerUniqueKey = headerFields["X-MOIT-USER-PROVIDER"] as? String ?? "" | ||
self.nickname = headerFields["X-MOIT-USER-NICKNAME"] as? String ?? "" | ||
self.email = headerFields["X-MOIT-USER-EMAIL"] as? String ?? "" | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
43 changes: 43 additions & 0 deletions
43
Features/Auth/AuthUserInterface/DemoApp/Sources/AuthUserInterfaceAppDelegate.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// | ||
// AuthAppDelegate.swift | ||
// | ||
// Auth | ||
// | ||
// Created by hyerin on . | ||
// | ||
|
||
import UIKit | ||
|
||
import AuthUserInterface | ||
import AuthUserInterfaceImpl | ||
import AuthDomain | ||
import AuthDomainImpl | ||
import AuthData | ||
|
||
import RIBs | ||
import RxSwift | ||
|
||
@main | ||
final class AuthAppDelegate: UIResponder, UIApplicationDelegate { | ||
|
||
private final class MockSignInListener: LoggedOutListener { } | ||
|
||
var window: UIWindow? | ||
private var router: ViewableRouting? | ||
|
||
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { | ||
let window = UIWindow(frame: UIScreen.main.bounds) | ||
|
||
router = LoggedOutBuilder(dependency: MOCKAuthComponent()) | ||
.build(withListener: MockSignInListener()) | ||
router?.interactable.activate() | ||
router?.load() | ||
|
||
window.rootViewController = self.router?.viewControllable.uiviewController | ||
window.makeKeyAndVisible() | ||
self.window = window | ||
|
||
return true | ||
} | ||
} | ||
|
59 changes: 59 additions & 0 deletions
59
Features/Auth/AuthUserInterface/DemoApp/Sources/MockComponent.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
// | ||
// MockComponent.swift | ||
// AuthUserInterfaceDemoApp | ||
// | ||
// Created by ์ตํ๋ฆฐ on 2023/07/14. | ||
// Copyright ยฉ 2023 chansoo.MOIT. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
import AuthUserInterface | ||
import AuthUserInterfaceImpl | ||
import AuthDomain | ||
import AuthDomainImpl | ||
import AuthData | ||
import MOITWeb | ||
import MOITWebImpl | ||
import TokenManager | ||
import TokenManagerImpl | ||
|
||
import RIBs | ||
import RxSwift | ||
|
||
final class MOCKAuthComponent: Component<EmptyDependency>, | ||
LoggedOutDependency, | ||
ProfileSelectDependency, | ||
SignUpDependency, | ||
MOITWebDependency, | ||
LoggedOutInteractorDependency { | ||
|
||
init() { | ||
super.init(dependency: EmptyComponent()) | ||
} | ||
|
||
var fetchRandomNumberUseCase: FetchRandomNumberUseCase = FetchRandomNumberUseCaseImpl() | ||
|
||
var postJoinInfoUseCase: PostJoinInfoUseCase = PostJoinInfoUseCaseImpl(joinRepository: MockJoinRepository()) | ||
|
||
var tokenManager: TokenManager = TokenManagerImpl() | ||
|
||
lazy var profileSelectBuildable: ProfileSelectBuildable = { | ||
return ProfileSelectBuilder(dependency: self) | ||
}() | ||
|
||
lazy var signUpBuildable: SignUpBuildable = { | ||
return SignUpBuilder(dependency: self) | ||
}() | ||
|
||
lazy var moitWebBuildable: MOITWebBuildable = { | ||
return MOITWebBuilder(dependency: self) | ||
}() | ||
} | ||
|
||
final class MockJoinRepository: JoinRepository { | ||
|
||
func post(imageIndex: Int, name: String, inviteCode: String?) -> Single<Int> { | ||
Single.just(3) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
์ด ๋ถ๋ถ usecase ํ๋ ๋ง๋ค์ด์ ์ฒ๋ฆฌํด๋ ๊ด์ฐฎ์ ๊ฒ ๊ฐ์์!
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.
@chansooo ์ค ์ฐธ๊ณ ํด์ ์์ ํด๋ณด๊ฒ ์ต๋๋ท!