Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- BottomSheetDialog
- Imageview
- RealtimeDB
- MaterialButton
- nav_graph
- 안드로이드 스튜디오
- 팝업액티비티
- 안드로이드스튜디오
- 랜덤ID
- Android
- Dialog
- ViewModel
- Kotlin
- androidstudio
- 밑줄
- Activity
- 뷰바인딩
- ButtonWithButton
- EditText
- ROOM
- lifecyclescope
- 코틀린
- ArrayList
- firebasefunctions
- button
- firebase
- textview
- OutlinedButton
- 안드로이드
- FRAGMENT
Archives
- Today
- Total
목록Auth (1)
안드로이드 앱 개발

Firebase Realtime DB를 설계할 때, 접근된 auth만 데이터를 읽고, 쓰게 하고 싶을 때가 있다. 이때, 보안규칙을 설정하면 되는데. 아래와 같이 간단하게 할 수 있다. 1. DB의 구조가 아래와 같을 때 각각 user의 인스턴스에 "uid"라는 field에 uid 값을 갖고 있어야 한다. 2. Firebase의 Realtime DB의 규칙에 아래와 같은 보안규칙을 설정하면 된다. { "rules": { "users" : { "$uid": { // Allow only authenticated content owners access to their data ".read": "auth != null && auth.uid == $uid" ,".write": "auth != null && aut..
Firebase/Realtime DB
2021. 7. 4. 20:57