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

fix: decode organisation details from access_token for Uniform authentication #2571

Merged
merged 3 commits into from
Dec 15, 2023

Conversation

jessicamcinchak
Copy link
Member

@jessicamcinchak jessicamcinchak commented Dec 15, 2023

We had a failed Southwark submission this morning and found out that there was a new release of the Submissions API Tuesday that changes the response shape of our authentication endpoint.

This change addresses that update, and we'll figure out a process for more pro-active communication and documentation with Idox going forward.

Regression tests failing against this branch but passing locally, going to pick up fix outside of this PR: https://github.com/theopensystemslab/planx-new/actions/runs/7222293774

Copy link
Contributor

@DafyddLlyr DafyddLlyr left a comment

Choose a reason for hiding this comment

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

Just a heads up - as the behavior of the Uniform auth server has change we'll need to make a corresponding change to e2e/tests/api-driven/src/invite-to-pay/mocks/server-mocks.yaml

First thought would be to make a hardcoded JWT using something like https://jwt.io/ (changing the payload to be a minimal example match the JWT you have locally which returns the two required values only).

@DafyddLlyr
Copy link
Contributor

I think the string eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJvcmdhbmlzYXRpb24tbmFtZSI6Ik1PQ0tFRCIsIm9yZ2FuaXNhdGlvbi1pZCI6Ik1PQ0tFRCJ9.p0DE8MUc9obE751XWOYPQWWtLXtq8-kJMPre4VuOBHg will work.

image

Copy link

github-actions bot commented Dec 15, 2023

Removed vultr server and associated DNS entries

@jessicamcinchak jessicamcinchak merged commit cf8a6ab into main Dec 15, 2023
12 checks passed
@jessicamcinchak jessicamcinchak deleted the jess/uniform-response-change branch February 13, 2024 13:13
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.

2 participants