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

Firebase App Check One-time Use Tokens for Callable Functions SDK #11270

Merged
merged 31 commits into from
May 16, 2023

Conversation

aiwenisevan
Copy link
Contributor

@aiwenisevan aiwenisevan commented May 10, 2023

Discussion

  • Implement one-time use token for Callable Functions SDK by following the proposal

Testing

  • Added unit tests

API Changes

@ncooke3
Copy link
Member

ncooke3 commented May 12, 2023

I've since updated the proposal with the latest revision. Introducing a new public HTTPSCallableOptions class is now part of the proposal.

FirebaseAppCheck/Interop/FIRAppCheckInterop.h Outdated Show resolved Hide resolved
FirebaseFunctions/Sources/Functions.swift Outdated Show resolved Hide resolved
FirebaseFunctions/Sources/Functions.swift Outdated Show resolved Hide resolved
@ncooke3 ncooke3 force-pushed the callableFunctions branch from 2b591cd to bb8df26 Compare May 12, 2023 18:15
@github-actions
Copy link
Contributor

github-actions bot commented May 12, 2023

Apple API Diff Report

Commit: 00b8926
Last updated: Tue May 16 15:01 PDT 2023
View workflow logs & download artifacts


[BUILD ERROR] FirebaseFunctions


Copy link
Contributor

@andrewheard andrewheard left a comment

Choose a reason for hiding this comment

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

LGTM! My suggestions are all extremely nitpicky, feel free to ignore.

FirebaseFunctions/CHANGELOG.md Outdated Show resolved Hide resolved
FirebaseFunctions/Sources/Functions.swift Outdated Show resolved Hide resolved
FirebaseFunctions/Sources/Functions.swift Outdated Show resolved Hide resolved
FirebaseFunctions/Sources/Functions.swift Outdated Show resolved Hide resolved
FirebaseFunctions/Sources/Functions.swift Outdated Show resolved Hide resolved
FirebaseFunctions/Sources/HTTPSCallableOptions.swift Outdated Show resolved Hide resolved
ncooke3 and others added 6 commits May 15, 2023 17:39
Co-authored-by: Andrew Heard <andrewheard@google.com>
Co-authored-by: Andrew Heard <andrewheard@google.com>
Co-authored-by: Andrew Heard <andrewheard@google.com>
Co-authored-by: Andrew Heard <andrewheard@google.com>
Co-authored-by: Andrew Heard <andrewheard@google.com>
Co-authored-by: Andrew Heard <andrewheard@google.com>
Updated `limitedUseTokenWithCompletion:` to always return a fresh limited-used token in every invocation (removed the `ongoingLimitedUseTokenPromise` property).
@ncooke3 ncooke3 merged commit 0cbe4f2 into master May 16, 2023
@ncooke3 ncooke3 deleted the callableFunctions branch May 16, 2023 22:33
andrewheard added a commit that referenced this pull request May 19, 2023
Merged FirebaseAppCheck changes from PRs #11224 and #11270.
@firebase firebase locked and limited conversation to collaborators Jun 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.