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

Use omniauthv2-shibboleth for omniauth v2 compat #1934

Merged
merged 1 commit into from
Jul 13, 2023

Conversation

cg2v
Copy link
Member

@cg2v cg2v commented Jun 29, 2023

Summary

Summary generated by Reviewpad on 29 Jun 23 14:07 UTC

This pull request updates the usage of the omniauth-shibboleth gem to version 1.3.2 in the Gemfile, replacing the previous version 1.1.2. This change allows for compatibility with omniauth version 2.0.0 or higher. The Gemfile.lock has been updated accordingly.

Description

Swap out the omniauth-shibboleth gem for omniauthv2-shibboleth (from https://github.com/lukaskoenen/omniauth-shibboleth)

Motivation and Context

The original omniauth-shibboleth gem has been unmaintained since 2018, and is not compatible with omniauth 2.x and ruby 3.x. A possibly unintended consequence of #1380 was that omniauth 2.0 was introduced.

The omniauth-shibboleth gem was forked and updated so that gitlab could use shibboleth with omniauth 2.0 (https://gitlab.com/gitlab-org/gitlab/-/merge_requests/121235). Autolab can also make use of it!
This change does NOT obsolete #1593. There are use cases for both generic SAML authentication and shibboleth

How Has This Been Tested?

Types of changes

  • [ X ] Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have run rubocop for style check. If you haven't, run overcommit --install && overcommit --sign to use pre-commit hook for linting
  • My change requires a change to the documentation, which is located at Autolab Docs
  • I have updated the documentation accordingly, included in this PR

Other issues / help required

I will run tests shortly and update here.

@reviewpad reviewpad bot requested a review from KesterTan June 29, 2023 14:07
@reviewpad reviewpad bot added small Pull request is small waiting-for-review labels Jun 29, 2023
For compatibility with omniauth v2, use a forked version of the otherwise
unmaintained omniauth-shibboleth gem
@cg2v
Copy link
Member Author

cg2v commented Jun 29, 2023

This is actually ready for review now. The first version used the "wrong" forked gem. Apparently gilab is using https://github.com/omniauth/omniauth-shibboleth-redux

@KesterTan
Copy link
Contributor

Read changelogs of psych and stringio, does not seem to affect autolab. LGTM

@damianhxy damianhxy added this pull request to the merge queue Jul 13, 2023
Merged via the queue into autolab:master with commit de56f91 Jul 13, 2023
NicholasMy pushed a commit to UB-CSE-IT/Autolab that referenced this pull request Jan 4, 2024
Use omniauth-shibboleth-redux

For compatibility with omniauth v2, use a forked version of the otherwise
unmaintained omniauth-shibboleth gem

(cherry picked from commit de56f91)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
small Pull request is small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants