Firebase Authentication for Rails API
Budget: $8 – $15 USD
The goal of this project is to produce a demo showing how Firebase Authentication https://firebase.google.com/docs/auth can be used for authentication for a Rails API on Postgres.
Scenario
We want to use Firebase Authentication to authenticate users in our mobile app. Once authenticated, we want to be able to make requests to our Rails API. We want the Rails API to be able to retrieve data about the user from Firebase to
- Confirm that they’re actually authenticated via Firebase.
- Be able to create a record for a User model in our database using the data from Firebase (saving their email for example).
- Use that instance of the User model as the signed in user for requests.
Deliverable
Access to an empty Github repo will be provided. The deliverable is
1. A brief description (1-2 paragraphs) in the README outlining how Firebase Authentication can be used to authenticate requests for a Rails API.
2. A new Rails app pushed to the Github repo with
- A User model with columns needed/recommended for handling authentication via Firebase.
- Any routes/controllers/actions needed/recommended for authentication (for example after a user authenticates via Firebase in the mobile app).
- A NotesController for a Note model that belongs to a User (no migration or actual model code needed, User has many Notes) showing how to authenticate the user making the request and respond with their notes (render json: @user.notes).
This code doesn’t have to run as-is, but should work once we add all the supporting models, config, env vars, etc.
Please let us know if you have any questions, anything’s unclear, or any of the above cannot be done for some technical reason (it’s possible we may be misunderstanding the Firebase docs and what we want to do is not doable).
This task is capped at 2 hours. Please stop then and send what you have. If it takes you less than 2 hours we’ll still pay for 2 hours.
Scenario
We want to use Firebase Authentication to authenticate users in our mobile app. Once authenticated, we want to be able to make requests to our Rails API. We want the Rails API to be able to retrieve data about the user from Firebase to
- Confirm that they’re actually authenticated via Firebase.
- Be able to create a record for a User model in our database using the data from Firebase (saving their email for example).
- Use that instance of the User model as the signed in user for requests.
Deliverable
Access to an empty Github repo will be provided. The deliverable is
1. A brief description (1-2 paragraphs) in the README outlining how Firebase Authentication can be used to authenticate requests for a Rails API.
2. A new Rails app pushed to the Github repo with
- A User model with columns needed/recommended for handling authentication via Firebase.
- Any routes/controllers/actions needed/recommended for authentication (for example after a user authenticates via Firebase in the mobile app).
- A NotesController for a Note model that belongs to a User (no migration or actual model code needed, User has many Notes) showing how to authenticate the user making the request and respond with their notes (render json: @user.notes).
This code doesn’t have to run as-is, but should work once we add all the supporting models, config, env vars, etc.
Please let us know if you have any questions, anything’s unclear, or any of the above cannot be done for some technical reason (it’s possible we may be misunderstanding the Firebase docs and what we want to do is not doable).
This task is capped at 2 hours. Please stop then and send what you have. If it takes you less than 2 hours we’ll still pay for 2 hours.