-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MBL-1158: Stub controller for logging in with OAuth (#1931)
* Move PKCETest.swift next to PKCE.swift * MBL-1158: Add stub for presenting OAuth login controller when feature flag is enabled * Change per review: unwrap window in presentationAnchor(for:)
- Loading branch information
1 parent
32cccc3
commit d6a8c6f
Showing
3 changed files
with
44 additions
and
4 deletions.
There are no files selected for viewing
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
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,12 @@ | ||
import Foundation | ||
|
||
public struct OAuth { | ||
public init() {} | ||
|
||
public static let redirectScheme = "ksrauth2" | ||
public static func authorizationURL() -> URL { | ||
let base = AppEnvironment.current.apiService.serverConfig.webBaseUrl | ||
// TODO: MBL-1159: This will take URL parameters, as defined in the ticket, for PKCE | ||
return base | ||
} | ||
} |