Search Posts

Category: authentication

Wait for authentication response from server before executing any Angularjs app

I have an AngularJS app (bootstrapped using ng-admin) contained within an admin backend where initial login to it is handled via LDAP. When the Angular app loads for the first time, it needs to make an API call (using Restangular) to the server to fetch a token plus derive a separate API url to use. Once the token is returned, it’s stored in localStorage and then passed to all subsequent API calls. Because I’m not […]

Firebase auth != null I can write but can’t read

I have been dealing with the authorization in Firebase for two days now and I can’t get it to work. Plenty of reading in the documentation and here in stackoverflow and still don’t get it. This is how my rules look like… { “rules”: { “.read”: false, “.write”: false, “notes”: { “.read”: “auth != null”, “.write”: “auth != null”, “.indexOn”: “uid” } } } My data looks like this… user-notes |_notes |_-ugly_id_for_this_record | |–date: “Sat […]