Hello, How do we get Locations Using Rest API before Logging In.
I think the hacky workaround would be for you to grant the “Get Locations”
privilege to the “Anonymous” role. And then you can use the
resource to get locations that have the “Login Location” tag.
Otherwise I think you’ve identified something missing from the Reference Application codebase (since the login page there is generated server-side). The thing to do would be to add a REST resource in the emrapi module to expose the available login locations without requiring any privileges.
I found out this URL does not require login to obtain locations.