Skip to content
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

Use the POA org pid to compare, not the POA user pid #1229

Merged
merged 6 commits into from May 14, 2020
Merged

Conversation

pkarman
Copy link
Contributor

@pkarman pkarman commented May 14, 2020

We were missing one key piece in the user authorization logic model, which is that the PID of the user is not the same PID referenced by the bgs.claimants POA responses. As the field name suggests the BGS response has person_org_ptcpnt_id which means we must look up the org participant id and use that to compare.

Copy link
Contributor

@ferristseng ferristseng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM except I have a question and possible refactor!

app/services/user_authorizer.rb Outdated Show resolved Hide resolved
app/services/external_api/bgs_service.rb Show resolved Hide resolved
@pkarman pkarman mentioned this pull request May 14, 2020
@pkarman pkarman merged commit cbddf08 into master May 14, 2020
@pkarman pkarman deleted the pek-poa-pid branch May 14, 2020 23:10
@pkarman pkarman mentioned this pull request May 15, 2020
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants