fablabbcn / smartcitizen-api

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

generate and expose forwarding tokens and usernames #344

Closed timcowlishaw closed 1 month ago

timcowlishaw commented 1 month ago

Forwarding tokens are now available to logged in users for their own account, and to admins for everyone, on the /users endpoint.

Tokens are generated automatically for researchers and admins on creation or privilege escalation

A new rake task users:generate_forwarding_tokens in order to backfill tokens for existing users without them