-
Notifications
You must be signed in to change notification settings - Fork 1
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
Adding SSO CILogon #872
Adding SSO CILogon #872
Conversation
… more modifications
Adding some missing methods and start cleanup. We still need to clean up and fix the `openid_connect` method on `omniauth_callbacks_controller.rb`.
Here we have a first pass of working integration tests for omniauth SSO. The tests still need to check for the messages we are setting as notifications. We can think about splitting the tests into integration and controller tests.
app/views/devise/registrations/_external_openid_connect.html.erb
Outdated
Show resolved
Hide resolved
expect(identifiable.surname).to_not eql('Doe') | ||
|
||
# XXX Check for flash notice message linked successfully | ||
# expect(page).to have_content('Linked succesfully') |
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.
For it to run during workflows, I think spec/integration/openid_connect_sso_test.rb
needs to be renamed to spec/integration/openid_connect_sso_spec.rb
. https://github.com/rspec/rspec-rails?tab=readme-ov-file#running-specs
app/views/devise/registrations/_external_openid_connect.html.erb
Outdated
Show resolved
Hide resolved
About and Help page changes related to the SSO updates #877
Commit f76758b - "Add link account with CILogon" added the functionality to link an external account via CILogon. However, the commit also removed the functionality to link one's ORCID credentials within the app. This commit adds the ORCID functionality back.
We previously had methods that were dynamically created but are no longer needed since we are creating them specifically. This is done to handle the different workflow for CILogon account creation.
Patch to Put Back ORCID Linking Functionality
Testcases for the Ominiauth controller openid connect
Change was requested here: #888 (comment)
5e0134f
to
d30ed72
Compare
Release `4.1.1+portage-4.2.0` includes a migration and it requires a specific new entry to the `identifier_schemes` table for openid_connect / CILogon to work properly. This rake task is intended to take care of all of that. Note: The changes applied via this rake task have already been executed manually on the staging environment. However, performing the rake task on staging should still have no adverse effects.
…ade-task Add Rake Task For `4.1.1+portage-4.2.0` Upgrade
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.
Approving this so it can be merged into integration for full testing of upcoming release.
This PR includes the combined efforts to add SSO to DMP Assistant.
Will be cleaning the PR and submit at a later time