allow anonymous usage for public APIs like GET /teamMembers/{id}

Description

In we create a Lambda that needs to list the members of a Team. The Lambda has no Synapse credentials so it can't call Synapse.login(). It needs to call Synapse.getTeamMembers() which uses an anonymous service to list the members of a team. (This is public information.). Currently the Python client requires logging in before making any requests. So The Lambda can't use getTeamMembers().

Environment

None

Activity

Show:
Jordan Kiang
July 24, 2020, 10:04 PM

The change is to allow requests through rather than preemptively raising a SynapseAuthenticationError, if the backend returns a 401 or 403 when the call is made AND the user is not logged in then a SynapseAuthenticationError is raised.

Jordan Kiang
July 25, 2020, 12:05 AM

This change has been merged to develop and will be in included in the next release candidate for validation.

Tess Thyer
August 31, 2020, 4:23 PM

Just verified the change – thanks !

Jordan Kiang
August 31, 2020, 4:27 PM

Closing per Tess' comment.

Assignee

Jordan Kiang

Reporter

Bruce Hoff

Labels

None

Validator

Tess Thyer

Development Area

Cloud Compute

Release Version History

None

Components

Fix versions

Priority

Major
Configure