fablabbcn / smartcitizen-api

The Smart Citizen Engine
https://developer.smartcitizen.me
GNU Affero General Public License v3.0
10 stars 4 forks source link

WIP - use https for user profile urls #239

Closed timcowlishaw closed 1 year ago

timcowlishaw commented 1 year ago

This i've tested succesfully in staging - the fact that it relies on SSL makes it difficult to write specs for

{
    "id": 3,
    "uuid": "6c9a7299-e315-4a32-a36c-b6df730dafa5",
    "role": "admin",
    "username": "tim",
    "avatar": "https://smartcitizen.s3.amazonaws.com/avatars/default.svg",
    "profile_picture": "https://staging-api.smartcitizen.me/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--ae4708c28450a738096a6dfeeaa9e7aab12086ac/tim.jpg",
    "url": null,
    "location": {
      "city": null,
      "country": null,
      "country_code": null
    },
    "joined_at": "2023-05-25T06:54:00Z",
    "updated_at": "2023-05-25T06:55:51Z",
    "email": "[FILTERED]",
    "legacy_api_key": "[FILTERED]",
    "devices": []
  }

In case of any issues, it might be worth running rails tmp:clear after deploying, as mentioned here.