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

Adding SSO CILogon #872

Merged
merged 100 commits into from
Sep 11, 2024
Merged

Adding SSO CILogon #872

merged 100 commits into from
Sep 11, 2024

Conversation

lagoan
Copy link
Collaborator

@lagoan lagoan commented Aug 29, 2024

This PR includes the combined efforts to add SSO to DMP Assistant.

Will be cleaning the PR and submit at a later time

Yashu and others added 30 commits June 28, 2024 09:38
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/controllers/users/omniauth_callbacks_controller.rb Outdated Show resolved Hide resolved
app/views/shared/_sign_in_form.html.erb Outdated Show resolved Hide resolved
app/models/user.rb Show resolved Hide resolved
config/initializers/devise.rb 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')
Copy link
Collaborator

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

About and Help page changes related to the SSO updates #877
CHANGELOG.md Outdated Show resolved Hide resolved
lagoan and others added 16 commits September 6, 2024 13:22
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
aaronskiba and others added 3 commits September 11, 2024 10:39
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
Copy link
Collaborator

@aaronskiba aaronskiba left a 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.

@lagoan lagoan merged commit 3d69ec6 into integration Sep 11, 2024
11 checks passed
@lagoan lagoan deleted the yashu-sso-link-accounts branch September 11, 2024 17:29
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.

3 participants