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

Use Folders for Authenticator #23743

Open
wants to merge 3 commits into
base: trunk
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,466 changes: 173 additions & 1,293 deletions WordPress/WordPress.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
shouldUseLaunchSchemeArgsEnv = "YES">
<TestPlans>
<TestPlanReference
reference = "container:../WordPressAuthenticator/WordPressAuthenticator.xctestplan"
reference = "container:WordPressAuthenticator/WordPressAuthenticator.xctestplan"
default = "YES">
</TestPlanReference>
</TestPlans>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Foundation
import UIKit

// MARK: - Storyboard enum
enum Storyboard: String {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
protocol DataGetting {
import Foundation

protocol DataGetting {
func data(for request: URLRequest) async throws -> Data
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import Foundation

class GoogleOAuthTokenGetter: GoogleOAuthTokenGetting {

let dataGetter: DataGetting
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import Foundation

/// Represents a JSON Web Token (JWT)
///
/// See https://jwt.io/introduction
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import Foundation

public enum OAuthError: LocalizedError {

// ASWebAuthenticationSession
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import Foundation

/// Models the request to send for an OAuth token
///
/// - Note: See documentation at https://developers.google.com/identity/protocols/oauth2/native-app#exchange-authorization-code
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import Foundation

// See:
// - https://developers.google.com/identity/protocols/oauth2/native-app#step1-code-verifier
// - https://www.rfc-editor.org/rfc/rfc7636
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import Foundation

extension URLRequest {

static func googleSignInTokenRequest(
Expand Down