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

[98] Integrate DfE sign in #63

Merged
merged 8 commits into from
Aug 1, 2023
Merged

[98] Integrate DfE sign in #63

merged 8 commits into from
Aug 1, 2023

Conversation

steventux
Copy link
Contributor

@steventux steventux commented Jul 26, 2023

Changes proposed in this pull request

  • Adds OmniAuth integration to be used with DfE Sign In (DSI) open connect service.
  • Adds DsiUser model which is retrieved or created on successful callback from DSI.
  • Adds developer DSI bypass using common HostingEnvironment library to determine whether bypassing DSI is possible.

image

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

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

@steventux steventux changed the title [98] Integrate dfe signin [98] Integrate DfE signin Jul 26, 2023
@steventux steventux force-pushed the 98-integrate-dfe-signin branch 4 times, most recently from 30eb2e5 to 7d5dcb7 Compare July 27, 2023 14:13
@steventux steventux changed the title [98] Integrate DfE signin [98] Integrate DfE sign in Jul 27, 2023
@steventux
Copy link
Contributor Author

Integrate DfE signin

@steventux steventux force-pushed the 98-integrate-dfe-signin branch 3 times, most recently from 7f8362d to 8579ca8 Compare July 27, 2023 16:12
@steventux steventux marked this pull request as ready for review July 27, 2023 16:13
Copy link
Contributor

@AbigailMcP AbigailMcP left a comment

Choose a reason for hiding this comment

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

🚀

@@ -0,0 +1,21 @@
# frozen_string_literal: true
module HostingEnvironment
TEST_ENVIRONMENTS = %w[local dev test preproduction review].freeze
Copy link
Contributor

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" }
Copy link
Contributor

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.
@steventux steventux merged commit 8d36b3b into main Aug 1, 2023
10 checks passed
@steventux steventux deleted the 98-integrate-dfe-signin branch August 1, 2023 12:33
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