-
Notifications
You must be signed in to change notification settings - Fork 0
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 DfE sign in for staff authentication #408
Conversation
b57df9e
to
c87e5a9
Compare
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.
Added a non-blocking comment.
@@ -29,14 +31,14 @@ def add_auth_attributes_to_session | |||
end | |||
|
|||
def check_user_access_to_service |
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.
Nitpicking: Did you consider making this def role
instead?
It would allow us to remove line 11 completely.
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.
Thanks @felixclack - No I didn't spot that, like it, will amend.
c87e5a9
to
9f79a6f
Compare
7e58178
to
44a7259
Compare
47c08f6
to
70f2150
Compare
70f2150
to
7093059
Compare
Staff will be authenticated and authorised using DSI.
The bypass? method will be used for SupportInterface and CheckRecords namespaces.
Add boolean staff column to dsi_users.
Configure an Omniauth builder with staff specific routes and callbacks.
Share the DSI authentication methods for check and support via a common concern.
Remove staff links partial, these are all Devise helper links.
7093059
to
196c7e5
Compare
Context
We currently have a devise based login for the support console of AYTQ/Check.
This is complexity we probably don’t need now we have a DfE Sign in integration.
Switch to using DfE Signin.
Changes proposed in this pull request
Guidance to review
Introduces a new role dependency which is configured in the env as
DFE_SIGN_IN_API_STAFF_ROLE_CODES
, awaiting confirmation of role code from the sign in team.The env var
DFE_SIGN_IN_STAFF_REDIRECT_URL
will need to match a valid DSI redirect URI in the service configuration.Likewise the post logout redirect URI will need to be configured in DSI to match the appropriate omniauth config.
This PR will need reviewing on the test environment with the appropriate configuration as review apps won't play nicely with DSI.
Link to Trello card
https://trello.com/c/1PcLM39J/117-use-dfe-signin-for-support-login
Checklist