-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove fallback to sub in RAS #969
Conversation
The style in this PR agrees with This formatting comment was generated automatically by a script in uc-cdis/wool. |
Pull Request Test Coverage Report for Build 11847
💛 - Coveralls |
@@ -179,15 +179,6 @@ def get_user_id(self, code): | |||
if userinfo.get("UserID"): | |||
username = userinfo["UserID"] | |||
field_name = "UserID" | |||
elif userinfo.get("userid"): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually see userid
in almost all logs from RAS. We probably still want to support either case, but just not fallback on other fields
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see comment
RAS sometimes not sending the correct userinfo response causes access issues downstream. We should error out instead of falling back to avoid issues on the client-side since some depend on the UserID response to be consistent.
Improvements