Skip to content

Commit 9c86801

Browse files
author
Nicolas Garnier
committed
Adding security rules for the Instagram and LinkedIn samples.
Change-Id: Id2f8cf4b53fa79a1ee434c188399b692b2220b84
1 parent cc529f8 commit 9c86801

File tree

4 files changed

+26
-0
lines changed

4 files changed

+26
-0
lines changed

instagram-auth/database.rules.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"rules": {
3+
"instagramAccessToken": {
4+
"$uid": {
5+
".read": "auth.uid === $uid",
6+
".write": "auth.uid === $uid"
7+
}
8+
}
9+
}
10+
}

instagram-auth/firebase.json

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
"database": {
3+
"rules": "database.rules.json"
4+
},
25
"hosting": {
36
"public": "public"
47
}

linkedin-auth/database.rules.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"rules": {
3+
"linkedInAccessToken": {
4+
"$uid": {
5+
".read": "auth.uid === $uid",
6+
".write": "auth.uid === $uid"
7+
}
8+
}
9+
}
10+
}

linkedin-auth/firebase.json

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
"database": {
3+
"rules": "database.rules.json"
4+
},
25
"hosting": {
36
"public": "public"
47
}

0 commit comments

Comments
 (0)