Skip to content
This repository has been archived by the owner on Jul 30, 2019. It is now read-only.

Add SLO and SSO endpoints for Login.gov #1476

Merged
merged 8 commits into from
Jan 9, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Rename method
  • Loading branch information
jessieay committed Jan 9, 2017
commit 54ed203dda1cf2bfaa55cd6a15db4cdbee1c2a62
2 changes: 1 addition & 1 deletion app/controllers/saml_authentications_controller.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class SamlAuthenticationsController < ApplicationController
def create
user = User.from_omniauth(request.env['omniauth.auth'])
user = User.from_saml_omniauth(request.env['omniauth.auth'])
session[:user_id] = user.id

redirect_to(
Expand Down
2 changes: 1 addition & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class User < ActiveRecord::Base

enum sam_status: { duns_blank: 0, sam_accepted: 1, sam_rejected: 2, sam_pending: 3 }

def self.from_omniauth(auth)
def self.from_saml_omniauth(auth)
where(uid: auth.uid).first_or_create do |user|
user.assign_from_auth(auth)
end
Expand Down