Skip to content

Commit cf734d5

Browse files
authored
feat: sign() on AuthClient (#109)
* refactor(dart): apply DRY pattern to HTTP clients for consistent client/projectId handling Add `_run` helper method to MessagingHttpClient, SecurityRulesHttpClient, and AppCheckHttpClient that accepts both client and projectId as callback parameters. This eliminates redundant `await app.client` calls and centralizes client/projectId retrieval logic. * refactor: update exception constructors to use FirebaseServiceType for consistency * test: add AppRegistry tests for singleton behavior and environment options * feat: implement sign() extension on AuthClient with IAM Credentials API, local RSA signing, and service account impersonation * refactor: delegate credential implementation to googleapis_auth_utils * refactor: use GoogleCredential to parse service account files * refactor(auth): use Expando to associate credentials with AuthClient * feat(auth): add getAccessToken() method to GoogleCredential for OAuth2 token retrieval * chore: update googleapis dependency to version 15.0.0 and add coverage.lcov to .gitignore * refactor: sign method to use CryptoSigner with custom endpoint. * feat: add universeDomain support for GoogleCredential and improve IAM endpoint handling
1 parent 368fc67 commit cf734d5

24 files changed

+2008
-5139
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
firebase-debug.log
22
ui-debug.log
33
firestore-debug.log
4+
coverage.lcov
45

56
node_modules
67
packages/dart_firebase_admin/test/client/package-lock.json

0 commit comments

Comments
 (0)