0
이 규칙은 올바른 형식입니까? 데이터베이스 규칙에 넣으면 오류/경고를 나타내는 붉은 점선이 보이지만 그 위에 마우스를 올려 놓으면 아무런 피드백도받지 못합니다.Firebase 보안 규칙 올바른 형식
{
"rules": {
"users": {
"$uid": {
// grants write access to the owner of this user account whose uid must exactly match the key ($uid)
".write": "auth !== null && auth.uid === $uid",
// grants read access to any user who is logged in --&& auth.provider === 'password'
".read": "auth !== null"
}
},
"usernames": {
"$userName": {
// grants write access to the owner of this user account whose uid must exactly match the key ($uid)
".write": "root.child('usernames').child($userName).child('uid').val() == auth.uid || root.child('usernames').child($userName).child('uid').val() == null",
// grants read access to any user who is logged in --&& auth.provider === 'password'
".read": "auth !== null"
}
},
"following": {
"$uid": {
// grants write access to the owner of this user account whose uid must exactly match the key ($uid)
".write": "auth !== null && auth.uid === $uid",
// grants read access to any user who is logged in --&& auth.provider === 'password'
".read": "auth !== null"
}
},
"followedBy": {
"$fid": {
"$uid": {
// grants write access to the owner of this user account whose uid must exactly match the key ($uid)
".write": "auth !== null && auth.uid === $uid",
// grants read access to any user who is logged in --&& auth.provider === 'password'
".read": "auth !== null"
}
}
}
}
}
내가 물어 본 이유는 위에 제공된 수동 링크의 지침을 따르고 OAuth (로그인 용)의 Facebook 및 이메일 (Google) 버튼을 표시하지 않는다는 것입니다. 그 이유를 알면 좋을지 모르겠습니다. –
와우! Firebase Engineer와 대화를 나눴습니다. 내가 겪고있는 문제의 스크린 샷을 보여줄 수있는 느슨한 방이 있습니까? 기본적으로 가입을 클릭하여 수동 계정을 만들 때도 아무 일도 일어나지 않습니다. –
보안 규칙으로 인해 앱의 버튼을 표시 할 수 없습니다. 코드와 규칙이 동시에 진행되어야하지만 이들 사이에는 명시 적 연결이 없습니다. 버튼을 표시하는 데 문제가있는 경우 [문제를 재현하는 데 필요한 최소 코드] (http://stackoverflow.com/help/mcve)를 표시하는 것이 가장 쉽습니다. 그건 우리 커뮤니티 속 여유 채널에도 적용될 수 있습니다. firebase-community.appspot.com을 통해 등록 할 수 있습니다. –