You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/dev_setup.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -143,6 +143,9 @@ On how to setup the development environment and how to deploy functions to the F
143
143
For more information refer to the official [Reference on Cloud Function for Firebase](https://firebase.google.com/docs/reference/functions/).
144
144
For example function take a look at this [GitHub repository](https://github.com/firebase/functions-samples).
145
145
146
+
### OSM OAuth 2
147
+
Firebase functions are also used to allow users to login to MapSwipe with their OpenStreetMap account. Refer to [the notes in the app repository](https://github.com/mapswipe/mapswipe/blob/master/docs/osm_login.md) for more information.
Finally, you need to figure out the service account used by the cloud functions (it apparently is `[email protected]` by default) and grant it the right to sign blobs, see https://firebase.google.com/docs/auth/admin/create-custom-tokens#service_account_does_not_have_required_permissions.
62
+
63
+
We store the user's OSM access token in the database, which right now does not do anything, but would be needed if we
64
+
want our backend to do something in OSM on behalf of the user. The database access rules are set to only allow the owner
0 commit comments