Skip to content

Conversation

@andrewheard
Copy link
Contributor

Removed the direct dependency on FIRHeartbeatLoggerProtocol from GACAppCheckAPIService, moving it up into the App Check providers.

Added request hooks (blocks) to allow heartbeat logging headers to be added to requests before they are sent.

#no-changelog

Removed the direct dependency on FIRHeartbeatLoggerProtocol from
GACAppCheckAPIService, moving it up into the App Check providers.

Added request hooks (blocks) to allow heartbeat logging headers to be
added to requests before they are sent.
GACAppAttestKeyIDStorage *keyIDStorage =
[[GACAppAttestKeyIDStorage alloc] initWithAppName:app.name appID:app.options.googleAppID];

GACAppCheckAPIRequestHook heartbeatLoggerHook = ^(NSMutableURLRequest *request) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is temporary also, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, thanks for catching! I just added some comments around these code blocks in each of the existing providers so they don't get missed.

Note: The request hooks concept will likely remain (or some alternative approach) but I'll need to pass them in from the Firebase App Check SDK since the generic App Check SDK shouldn't know about FIRHeartbeatLoggerProtocol once we're done refactoring (these code blocks themselves are temporary though).

Surrounded Firebase-specific code with FIREBASE_APP_CHECK_ONLY_BEGIN and
FIREBASE_APP_CHECK_ONLY_END comments.
@andrewheard andrewheard merged commit a096f4d into appcheck-lite May 11, 2023
@andrewheard andrewheard deleted the ah/appcheck-heartbeat branch May 11, 2023 19:59
andrewheard added a commit that referenced this pull request May 19, 2023
Removed the direct dependency on FIRHeartbeatLoggerProtocol from GACAppCheckAPIService, moving it up into the App Check providers.

Added request hooks (blocks) to allow heartbeat logging headers to be added to requests before they are sent.
andrewheard added a commit that referenced this pull request May 26, 2023
Removed the direct dependency on FIRHeartbeatLoggerProtocol from GACAppCheckAPIService, moving it up into the App Check providers.

Added request hooks (blocks) to allow heartbeat logging headers to be added to requests before they are sent.
andrewheard added a commit that referenced this pull request May 31, 2023
Removed the direct dependency on FIRHeartbeatLoggerProtocol from GACAppCheckAPIService, moving it up into the App Check providers.

Added request hooks (blocks) to allow heartbeat logging headers to be added to requests before they are sent.
@firebase firebase locked and limited conversation to collaborators Jun 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants