-
Notifications
You must be signed in to change notification settings - Fork 0
[#763] Google 인증을 GoogleSignIn serverAuthCode 흐름으로 전환한다 #771
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
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
46313ac
chore: GoogleSignIn 의존성과 앱 콜백 설정 추가
opficdev e50c14e
feat: Google authorization code API 계약 추가
opficdev 4ff3a87
feat: Google 로그인에 serverAuthCode 적용
opficdev 146cfbf
feat: Google 계정 연결에 serverAuthCode 적용
opficdev 7a35bca
fix: Google 로그아웃 시 로컬 세션 정리
opficdev f897e17
refactor: Google ticket 기반 인증 호출 제거
opficdev 21e7e5e
chore: Staging과 Prod GoogleSignIn 설정 검증 추가
opficdev 78a1ff9
refactor: 코드 개선
opficdev 198c38e
fix: Google 인증 요청 scene 지정
opficdev 96ece7c
refactor: 인증 공급자 로그아웃 책임 분리
opficdev 458e807
fix: scene identifier 중복 전달 방지
opficdev 885fed0
fix: 회원 탈퇴 시 공급자 로컬 세션 정리
opficdev 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
This file contains hidden or 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 hidden or 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
17 changes: 17 additions & 0 deletions
17
Application/Core/Sources/Authentication/AuthPresentationContext.swift
This file contains hidden or 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,17 @@ | ||
| // | ||
| // AuthPresentationContext.swift | ||
| // Core | ||
| // | ||
| // Created by opfic on 7/27/26. | ||
| // | ||
|
|
||
| public struct AuthPresentationContext: Equatable, Sendable { | ||
| public let identifier: String | ||
|
|
||
| // 인증 호출 경로에서 같은 key로 접근하되 실제 값은 각 Task에 격리하기 위한 정적 변수 | ||
| @TaskLocal public static var current: Self? | ||
|
|
||
| public init(identifier: String) { | ||
| self.identifier = identifier | ||
| } | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
65 changes: 65 additions & 0 deletions
65
Application/Infra/Sources/Common/TopViewControllerProvider.swift
This file contains hidden or 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,65 @@ | ||
| // | ||
| // TopViewControllerProvider.swift | ||
| // Infra | ||
| // | ||
| // Created by opfic on 7/26/26. | ||
| // | ||
|
|
||
| import UIKit | ||
|
|
||
| enum TopViewControllerProvider { | ||
| struct Candidate { | ||
| let identifier: String | ||
| let rootViewController: UIViewController? | ||
| } | ||
|
|
||
| @MainActor | ||
| static func topViewController(identifier: String) -> UIViewController? { | ||
| let candidates = UIApplication.shared.connectedScenes | ||
| .compactMap { $0 as? UIWindowScene } | ||
| .map { | ||
| Candidate( | ||
| identifier: $0.session.persistentIdentifier, | ||
| rootViewController: $0.windows | ||
| .first(where: \.isKeyWindow)? | ||
| .rootViewController | ||
| ) | ||
| } | ||
|
|
||
| return topViewController( | ||
| identifier: identifier, | ||
| candidates: candidates | ||
| ) | ||
| } | ||
|
|
||
| @MainActor | ||
| static func topViewController( | ||
| identifier: String, | ||
| candidates: [Candidate] | ||
| ) -> UIViewController? { | ||
| let rootViewController = candidates | ||
| .first { | ||
| $0.identifier == identifier | ||
| }? | ||
| .rootViewController | ||
| return topViewController(from: rootViewController) | ||
| } | ||
|
|
||
| @MainActor | ||
| static func topViewController(from viewController: UIViewController?) -> UIViewController? { | ||
| if let navigationController = viewController as? UINavigationController { | ||
| return topViewController(from: navigationController.visibleViewController) | ||
| } | ||
|
|
||
| if let tabBarController = viewController as? UITabBarController, | ||
| let selectedViewController = tabBarController.selectedViewController { | ||
| return topViewController(from: selectedViewController) | ||
| } | ||
|
|
||
| if let presentedViewController = viewController?.presentedViewController { | ||
| return topViewController(from: presentedViewController) | ||
| } | ||
|
|
||
| return viewController | ||
| } | ||
| } |
This file contains hidden or 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 hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.