Skip to content

WIP: Implement reCAPTCHA Enterprise App Check provider #15172

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

Open
wants to merge 2 commits into
base: main
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
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@

#import <AppCheckCore/AppCheckCore.h>

#import "FirebaseAppCheck/Sources/Core/FIRApp+AppCheck.h"
#import "FirebaseAppCheck/Sources/Core/FIRAppCheckLogger.h"
#import "FirebaseAppCheck/Sources/Core/FIRAppCheckToken+Internal.h"
#import "FirebaseAppCheck/Sources/Core/FIRHeartbeatLogger+AppCheck.h"
#import "Core/FIRApp+AppCheck.h"
#import <Core/FIRAppCheckLogger.h>
#import "Core/FIRAppCheckToken+Internal.h"
#import "Core/FIRHeartbeatLogger+AppCheck.h"

#import "FirebaseCore/Extension/FirebaseCoreInternal.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

#import "FirebaseAppCheck/Sources/Core/Errors/FIRAppCheckErrorUtil.h"
#import "Core/FIRAppCheckErrorUtil.h"

#import <AppCheckCore/AppCheckCore.h>

Expand Down
2 changes: 1 addition & 1 deletion FirebaseAppCheck/Sources/Core/Errors/FIRAppCheckErrors.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@

#import <Foundation/Foundation.h>

#import "FirebaseAppCheck/Sources/Public/FirebaseAppCheck/FIRAppCheckErrors.h"
#import "Core/FIRAppCheckErrors.h"

NSErrorDomain const FIRAppCheckErrorDomain = @"com.firebase.appCheck";
2 changes: 1 addition & 1 deletion FirebaseAppCheck/Sources/Core/FIRApp+AppCheck.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

#import "FirebaseAppCheck/Sources/Core/FIRApp+AppCheck.h"
#import "Core/FIRApp+AppCheck.h"

@implementation FIRApp (AppCheck)

Expand Down
24 changes: 12 additions & 12 deletions FirebaseAppCheck/Sources/Core/FIRAppCheck.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,23 @@
* limitations under the License.
*/

#import "FirebaseAppCheck/Sources/Public/FirebaseAppCheck/FIRAppCheck.h"
#import "Public/Core/FIRAppCheck.h"

#import <AppCheckCore/AppCheckCore.h>
#import <FirebaseAppCheckInterop/FirebaseAppCheckInterop.h>
#import <GoogleUtilities/GULUserDefaults.h>

#import "FirebaseAppCheck/Sources/Public/FirebaseAppCheck/FIRAppCheckErrors.h"
#import "FirebaseAppCheck/Sources/Public/FirebaseAppCheck/FIRAppCheckProvider.h"
#import "FirebaseAppCheck/Sources/Public/FirebaseAppCheck/FIRAppCheckProviderFactory.h"

#import "FirebaseAppCheck/Sources/Core/Errors/FIRAppCheckErrorUtil.h"
#import "FirebaseAppCheck/Sources/Core/FIRAppCheck+Internal.h"
#import "FirebaseAppCheck/Sources/Core/FIRAppCheckLogger.h"
#import "FirebaseAppCheck/Sources/Core/FIRAppCheckSettings.h"
#import "FirebaseAppCheck/Sources/Core/FIRAppCheckToken+Internal.h"
#import "FirebaseAppCheck/Sources/Core/FIRAppCheckTokenResult.h"
#import "FirebaseAppCheck/Sources/Core/FIRInternalAppCheckProvider.h"
#import "Public/Core/FIRAppCheckErrors.h"
#import "Public/Core/FIRAppCheckProvider.h"
#import "Public/Core/FIRAppCheckProviderFactory.h"

#import "Public/Core/FIRAppCheckErrorUtil.h"
#import "Public/Core/FIRAppCheck+Internal.h"
#import "Public/Core/FIRAppCheckLogger.h"
#import "Public/Core/FIRAppCheckSettings.h"
#import "Public/Core/FIRAppCheckToken+Internal.h"
#import "Public/Core/FIRAppCheckTokenResult.h"
#import "Public/Core/FIRInternalAppCheckProvider.h"

NS_ASSUME_NONNULL_BEGIN

Expand Down
6 changes: 3 additions & 3 deletions FirebaseAppCheck/Sources/Core/FIRAppCheckComponent.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@

#import <FirebaseAppCheckInterop/FirebaseAppCheckInterop.h>

#import "FirebaseAppCheck/Sources/Core/FIRAppCheck+Internal.h"
#import "FirebaseAppCheck/Sources/Public/FirebaseAppCheck/FIRAppCheck.h"
#import "Public/Core/FIRAppCheck+Internal.h"
#import "Public/Core/FIRAppCheck.h"

#import "FirebaseCore/Extension/FirebaseCoreInternal.h"
#import "../../FirebaseCore/Extension/FirebaseCoreInternal.h"

NS_ASSUME_NONNULL_BEGIN

Expand Down
4 changes: 2 additions & 2 deletions FirebaseAppCheck/Sources/Core/FIRAppCheckLogger.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* limitations under the License.
*/

#import "FirebaseAppCheck/Sources/Core/FIRAppCheckLogger.h"
#import "Core/FIRAppCheckLogger.h"

#import "FirebaseCore/Extension/FirebaseCoreInternal.h"
#import "../FirebaseCore/Extension/FirebaseCoreInternal.h"

NS_ASSUME_NONNULL_BEGIN

Expand Down
4 changes: 2 additions & 2 deletions FirebaseAppCheck/Sources/Core/FIRAppCheckSettings.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
* limitations under the License.
*/

#import "FirebaseAppCheck/Sources/Core/FIRAppCheckSettings.h"
#import "Core/FIRAppCheckSettings.h"

#import <GoogleUtilities/GULUserDefaults.h>

#import "FirebaseCore/Extension/FirebaseCoreInternal.h"
#import "../FirebaseCore/Extension/FirebaseCoreInternal.h"

NS_ASSUME_NONNULL_BEGIN

Expand Down
2 changes: 1 addition & 1 deletion FirebaseAppCheck/Sources/Core/FIRAppCheckToken.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

#import "FirebaseAppCheck/Sources/Core/FIRAppCheckToken+Internal.h"
#import "Core/FIRAppCheckToken+Internal.h"

NS_ASSUME_NONNULL_BEGIN

Expand Down
2 changes: 1 addition & 1 deletion FirebaseAppCheck/Sources/Core/FIRAppCheckTokenResult.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

#import "FirebaseAppCheck/Sources/Core/FIRAppCheckTokenResult.h"
#import "Core/FIRAppCheckTokenResult.h"

NS_ASSUME_NONNULL_BEGIN

Expand Down
4 changes: 2 additions & 2 deletions FirebaseAppCheck/Sources/Core/FIRAppCheckValidator.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* limitations under the License.
*/

#import "FirebaseAppCheck/Sources/Core/FIRAppCheckValidator.h"
#import "Public/Core/FIRAppCheckValidator.h"

#import "FirebaseCore/Extension/FirebaseCoreInternal.h"
#import "../FirebaseCore/Extension/FirebaseCoreInternal.h"

@implementation FIRAppCheckValidator

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

#import "FirebaseAppCheck/Sources/Core/FIRHeartbeatLogger+AppCheck.h"
#import "Public/Core/FIRHeartbeatLogger+AppCheck.h"

/// The HTTP request header key for a heartbeat logging payload.
static NSString *const kFIRHeartbeatLoggerPayloadHeaderKey = @"X-firebase-client";
Expand Down
6 changes: 3 additions & 3 deletions FirebaseAppCheck/Sources/Core/FIRInternalAppCheckProvider.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
* limitations under the License.
*/

#import "FirebaseAppCheck/Sources/Core/FIRInternalAppCheckProvider.h"
#import "Public/Core/FIRInternalAppCheckProvider.h"

#import "FirebaseAppCheck/Sources/Core/FIRAppCheckToken+Internal.h"
#import "FirebaseAppCheck/Sources/Public/FirebaseAppCheck/FIRAppCheckProvider.h"
#import <Core/FIRAppCheckToken+Internal.h>
#import "Core/FIRAppCheckProvider.h"

@interface FIRInternalAppCheckProvider ()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

#import "FirebaseCore/Extension/FirebaseCoreInternal.h"
#import "../../FirebaseCore/Extension/FirebaseCoreInternal.h"

NS_ASSUME_NONNULL_BEGIN

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#import <Foundation/Foundation.h>

#import "FirebaseAppCheck/Sources/Public/FirebaseAppCheck/FIRAppCheck.h"
#import "Core/FIRAppCheck.h"

NS_ASSUME_NONNULL_BEGIN

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#import <Foundation/Foundation.h>

#import "FirebaseAppCheck/Sources/Public/FirebaseAppCheck/FIRAppCheckErrors.h"
#import "Core/FIRAppCheckErrors.h"

NS_ASSUME_NONNULL_BEGIN

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#import <AppCheckCore/AppCheckCore.h>

#import "FirebaseCore/Extension/FirebaseCoreInternal.h"
#import "../../FirebaseCore/Extension/FirebaseCoreInternal.h"

extern FIRLoggerService kFIRLoggerAppCheck;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

#import "FirebaseAppCheck/Sources/Public/FirebaseAppCheck/FIRAppCheckToken.h"
#import "Core/FIRAppCheckToken.h"

#import <Foundation/Foundation.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
@class FIROptions;

NS_ASSUME_NONNULL_BEGIN

NS_SWIFT_NAME(AppCheckValidator)
@interface FIRAppCheckValidator : NSObject

// `FIRAppCheckValidator` doesn’t provide any instance methods.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

#import "FirebaseCore/Extension/FIRHeartbeatLogger.h"
#import "../../FirebaseCore/Extension/FIRHeartbeatLogger.h"

#import <AppCheckCore/AppCheckCore.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@

#import <AppCheckCore/AppCheckCore.h>

#import "FirebaseAppCheck/Sources/Core/FIRApp+AppCheck.h"
#import "FirebaseAppCheck/Sources/Core/FIRAppCheckLogger.h"
#import "FirebaseAppCheck/Sources/Core/FIRAppCheckToken+Internal.h"
#import "FirebaseAppCheck/Sources/Core/FIRAppCheckValidator.h"
#import "FirebaseAppCheck/Sources/Core/FIRHeartbeatLogger+AppCheck.h"
#import "Core/FIRApp+AppCheck.h"
#import <Core/FIRAppCheckLogger.h>
#import <Core/FIRAppCheckToken+Internal.h>
#import <Core/FIRAppCheckValidator.h>
#import <Core/FIRHeartbeatLogger+AppCheck.h>

#import "FirebaseCore/Extension/FirebaseCoreInternal.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#import "FirebaseAppCheck/Sources/Public/FirebaseAppCheck/FIRAppCheckDebugProviderFactory.h"

#import "FirebaseAppCheck/Sources/Core/FIRAppCheckLogger.h"
#import <Core/FIRAppCheckLogger.h>
#import "FirebaseAppCheck/Sources/Public/FirebaseAppCheck/FIRAppCheckDebugProvider.h"

NS_ASSUME_NONNULL_BEGIN
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@

#import <AppCheckCore/AppCheckCore.h>

#import "FirebaseAppCheck/Sources/Core/FIRApp+AppCheck.h"
#import "FirebaseAppCheck/Sources/Core/FIRAppCheckLogger.h"
#import "FirebaseAppCheck/Sources/Core/FIRAppCheckToken+Internal.h"
#import "FirebaseAppCheck/Sources/Core/FIRAppCheckValidator.h"
#import "FirebaseAppCheck/Sources/Core/FIRHeartbeatLogger+AppCheck.h"
#import "Core/FIRApp+AppCheck.h"
#import <Core/FIRAppCheckLogger.h>
#import <Core/FIRAppCheckToken+Internal.h>
#import <Core/FIRAppCheckValidator.h>
#import <Core/FIRHeartbeatLogger+AppCheck.h>

#import "FirebaseCore/Extension/FirebaseCoreInternal.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#import "FirebaseAppCheck/Sources/Public/FirebaseAppCheck/FIRDeviceCheckProviderFactory.h"

#import "FirebaseAppCheck/Sources/Public/FirebaseAppCheck/FIRAppCheck.h"
#import <Core/FIRAppCheck.h>
#import "FirebaseAppCheck/Sources/Public/FirebaseAppCheck/FIRDeviceCheckProvider.h"

@implementation FIRDeviceCheckProviderFactory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#import <Foundation/Foundation.h>

#import "FIRAppCheckProvider.h"
#import <Core/FIRAppCheckProvider.h>

#import "FIRAppCheckAvailability.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#import <Foundation/Foundation.h>

#import "FIRAppCheckProvider.h"
#import <Core/FIRAppCheckProvider.h>

@class FIRApp;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#import <Foundation/Foundation.h>

#import "FIRAppCheckProviderFactory.h"
#import <Core/FIRAppCheckProviderFactory.h>

NS_ASSUME_NONNULL_BEGIN

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#import <Foundation/Foundation.h>

#import "FIRAppCheckAvailability.h"
#import "FIRAppCheckProvider.h"
#import <Core/FIRAppCheckProvider.h>

@class FIRApp;
@protocol FIRDeviceCheckAPIServiceProtocol;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#import <Foundation/Foundation.h>

#import "FIRAppCheckAvailability.h"
#import "FIRAppCheckProviderFactory.h"
#import <Core/FIRAppCheckProviderFactory.h>

NS_ASSUME_NONNULL_BEGIN

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
* limitations under the License.
*/

#import "FIRAppCheck.h"
#import "FIRAppCheckErrors.h"
#import "FIRAppCheckProvider.h"
#import "FIRAppCheckProviderFactory.h"
#import "FIRAppCheckToken.h"
#import <Core/FIRAppCheck.h>
#import <Core/FIRAppCheckErrors.h>
#import <Core/FIRAppCheckProvider.h>
#import <Core/FIRAppCheckProviderFactory.h>
#import <Core/FIRAppCheckToken.h>

// Debug provider
#import "FIRAppCheckDebugProvider.h"
Expand Down
Loading
Loading