• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

uclibs / treatment_database / 4b238a57-97b9-4818-b523-5e7c6bb78664

11 Mar 2025 09:58PM UTC coverage: 98.764%. First build
4b238a57-97b9-4818-b523-5e7c6bb78664

push

circleci

web-flow
Merge SSO into Main (#573)

* Pin Rails, actionmailer, actionpack, actiontext to version 6.1.7.9 and bundle install (#559)

* Hotfix for navigation views. (#563)

Co-authored-by: Thomas Scherz <scherztc@ucmail.uc.edu>

* Update to Rails version 6.1.7.10 for security fix (#564)

* Update to Ruby 3.3.6 (#569)

* Add configuration to run github workflow jira-pr-updater-action (#568)

* Security updates (#571)

* Bundle update

* Fix CircleCI

* Pin concurrent-ruby

* Pin concurrent-ruby

* Yarn upgrade

* FEATURE BRANCH - 407 Add SSO (#498)

* Add SSO with Shibboleth

* LIBTREATDB-56 Replace Devise with Custom Session Management - FEATURE BRANCH (#532)

* Copy ucrate tests - first pass

* Add necessary gems

* reviewed test list

* files reviewed 51724

* reviewed tests and deleted or modified

* Test update 5/20

* LIBTREATDB-38 add sso configuration to environment variables (#528)

* LIBTREATDB-61 - Remove env variables (#529)

* Remove Shibboleth environment variables, comment out Shibboleth tests

* LIBTREATDB-61 link issue to Jira

* Copy ucrate tests - first pass

reviewed test list

LIBTREATDB-55 set up to use shibboleth with middleware (#530)

* Remove Shibboleth environment variables, comment out Shibboleth tests

* LIBTREATDB-61 link issue to Jira

* LIBTREATDB-55 Set up middleware to use Shibboleth

* LIBTREATDB-55 Rubocop fix

* WIP

* Revert "WIP"

This reverts commit <a class=hub.com/uclibs/treatment_database/commit/9a3987c91ea32d7e0410fd9bb3a34905fcfc8431">9a3987c91.

* Re-run bundle install

* Upgrade to pagy 9

* Add test for callbacks controller

* Rubocop fix for new callbacks controller spec

LIBTREATDB-55 set up to use shibboleth with middleware (#530)

* Remove Shibboleth environment variables, comment out Shibboleth tests

* LIBTREATDB-61 link issue to Jira

* LIBTREATDB-55 Set up middleware to use Shibboleth

* LIBTREATDB-55 Rubocop fix

* WIP

* Revert "WIP"

This reverts commit 9a3987c91ea32d7e0410fd9bb3a34905fcfc8431.

* Re-run bundle install

* Upgrade to pagy 9

* Add test for callback... (continued)

168 of 225 new or added lines in 16 files covered. (74.67%)

639 of 647 relevant lines covered (98.76%)

25.06 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/app/controllers/dev_sessions_controller.rb
1
# frozen_string_literal: true
2

3
class DevSessionsController < ApplicationController
3✔
4
  skip_before_action :authenticate_user!, only: %i[new create destroy]
3✔
5
  skip_before_action :check_user_active, only: %i[new create destroy]
3✔
6
  skip_before_action :validate_session_timeout, only: %i[new create destroy]
3✔
7

8
  def new
3✔
9
    redirect_to params[:target] || root_path if user_signed_in?
6✔
10
  end
11

12
  def create
3✔
13
    username = params[:username].strip.downcase
52✔
14
    user = User.find_by(username: username)
52✔
15

16
    return handle_failed_login unless user
52✔
17

18
    handle_successful_login(user)
51✔
19
  end
20

21
  def destroy
3✔
NEW
22
    reset_session_and_cookies
5✔
NEW
23
    redirect_to root_path, notice: 'Signed out successfully. (Development)'
5✔
24
  end
25

26
  private
3✔
27

28
  def handle_successful_login(user)
3✔
29
    reset_session_and_cookies
51✔
30
    session[:user_id] = user.id
51✔
31
    session[:last_seen] = Time.current
51✔
32
    redirect_to params[:target] || conservation_records_path, notice: 'Signed in successfully. (Development)'
51✔
33
  end
34

35
  def handle_failed_login
3✔
NEW
36
    flash.now[:alert] = 'Invalid username'
1✔
NEW
37
    render :new
1✔
38
  end
39
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc