sfbrigade / bats-server

Routed is an app to help ambulances direct non-critical patients to hospital emergency rooms with the most availability.
https://routedapp.org/
GNU Affero General Public License v3.0
18 stars 12 forks source link

User cannot authenticate with Peak Response if they do not have a Vehicle assignment #341

Open francisli opened 9 months ago

francisli commented 9 months ago

Currently, the Vehicle assignment is used to identify the Agency that the User belongs to for creating the User's account with the right Organization in Routed.

Consider passing the Agency subdomain identifier to Routed so that it can be included as a scope for authenticating the User with Peak Response. When authenticating using the subsequently created access token, the scope can then be used to look up the associated Agency.