Spaces:
Sleeping
Sleeping
NTAMBARA Etienne
commited on
Commit
•
a94ac80
1
Parent(s):
532b0e7
Changes Made Keys
Browse files- app.py +1 -1
- serviceAccountKey.json +13 -0
app.py
CHANGED
@@ -12,7 +12,7 @@ from firebase_admin import storage
|
|
12 |
from datetime import datetime
|
13 |
|
14 |
# Initialize Firebase
|
15 |
-
cred = credentials.Certificate("
|
16 |
firebase_admin.initialize_app(cred, {
|
17 |
'databaseURL': 'https://faceantendancerealtime-default-rtdb.firebaseio.com/',
|
18 |
'storageBucket': 'faceantendancerealtime.appspot.com'
|
|
|
12 |
from datetime import datetime
|
13 |
|
14 |
# Initialize Firebase
|
15 |
+
cred = credentials.Certificate("serviceAccountKey.json") # Update the path to your Firebase credentials
|
16 |
firebase_admin.initialize_app(cred, {
|
17 |
'databaseURL': 'https://faceantendancerealtime-default-rtdb.firebaseio.com/',
|
18 |
'storageBucket': 'faceantendancerealtime.appspot.com'
|
serviceAccountKey.json
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"type": "service_account",
|
3 |
+
"project_id": "faceantendancerealtime",
|
4 |
+
"private_key_id": "2cf7fe69f161bf9a1edd88ffb6963bc261f5442b",
|
5 |
+
"private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCnmwUL7V9hRXNb\n/1G4oN5i9gAi+Hs61Q9lW6//h+XcvNQSAlFvMNilqgnbryfwpaoel2DL4fSceA/p\nD4C3Hn0i+JkBT1KOhQXhyx/zpDrxZjF5kxXvx7ixC2XHeMmQKKjGULAZT/Zj8rwt\n8/rQKxE17bG+FVKmww40udEQ3Eds8jFlaydbu2BYxPzTQa1o6nl+V132LI3Foitj\nk5PZxQxMZCESRSuSe4tm2ifLP59ND6bF2Vm77x1chiq5QnwY4WE2rJwjbMMGSU2r\nTrt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lPcJsjYR/8ws1x2too5l74\nLrin6QwpmcLHsuTpZrnKCVldZ5yk2HZqzIez7lUCgYAl+U7AjQsZtxY7dGqzv0/v\n9yh+4+7NSrE6W/jzhNY/GgO5ZUE0OqZ0e+fQJjP/zDQPZSMJsPEyDgJhX/UgvacD\nMRaCvKL/b15VKPEK+B2DThfqsq1jeLS6B5mXUsCdYYkmhakSbyVTazKYyDvJxqAn\n7qmLqv7LFMcK5HQBDalC2w==\n-----END PRIVATE KEY-----\n",
|
6 |
+
"client_email": "firebase-adminsdk-anjin@faceantendancerealtime.iam.gserviceaccount.com",
|
7 |
+
"client_id": "101404286884221349964",
|
8 |
+
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
|
9 |
+
"token_uri": "https://oauth2.googleapis.com/token",
|
10 |
+
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
|
11 |
+
"client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/firebase-adminsdk-anjin%40faceantendancerealtime.iam.gserviceaccount.com",
|
12 |
+
"universe_domain": "googleapis.com"
|
13 |
+
}
|