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

Add organisation and profile to scope array #107

Merged
merged 1 commit into from
Aug 30, 2023

Conversation

steventux
Copy link
Contributor

@steventux steventux commented Aug 24, 2023

Context

We need to restrict access to the service so that only DfE staff and agencies have access. The plan is to do this by checking against a list we manage in the service, using data sent by DSI.

Changes proposed in this pull request

Adding organisation to the scope array will return data related to the organisation claim in the response from DSI after successful authentication. Specifically, in "extra"."raw_info"."organisation". The "companyRegistrationNumber" in there is what we'll use to check a hardcoded list of agencies.

Guidance to review

Link to Trello card

Checklist

  • Attach to Trello card
  • Rebased main
  • Cleaned commit history
  • Tested by running locally

These fields will be returned by DSI after successful authentication.
@steventux steventux merged commit 91b8657 into main Aug 30, 2023
10 checks passed
@steventux steventux deleted the add-organisation-to-dsi-omniauth-scope branch August 30, 2023 13:24
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