-
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
[98] Integrate DfE sign in #63
Conversation
30eb2e5
to
7d5dcb7
Compare
7d5dcb7
to
042affa
Compare
7f8362d
to
8579ca8
Compare
cf7a3d4
to
8579ca8
Compare
8579ca8
to
803d824
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.
🚀
app/lib/hosting_environment.rb
Outdated
@@ -0,0 +1,21 @@ | |||
# frozen_string_literal: true | |||
module HostingEnvironment | |||
TEST_ENVIRONMENTS = %w[local dev test preproduction review].freeze |
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 think we just have %w[local test preproduction review]
end | ||
|
||
first_name { "Steven" } | ||
last_name { "Toast" } |
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.
🍞 :)
Allow bypass of DSI sign in for specific environments and config.
There's an issue with using arbitrary action urls and govuk_button_to or button_to when passing a block: url_for is called to generate the form action. It seems passing an aribtrary path and a block is not possible. Hence the form plain HTML to render the Sign in button with an SVG inside it.
803d824
to
a999910
Compare
Changes proposed in this pull request
DsiUser
model which is retrieved or created on successful callback from DSI.HostingEnvironment
library to determine whether bypassing DSI is possible.Guidance to review
This can't be fully tested yet, we need some configuration on DSI.
Link to Trello card
https://trello.com/c/dfeaSkjW/98-integrate-dfe-signin
Checklist