Skip to content

Commit

Permalink
undo rubocop fix and remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
lmgeorge committed May 31, 2024
1 parent 01ad79d commit b0d9a68
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class OpenidConnectRelyingParty < Sinatra::Base
def config
@config ||= Config.new
end

# rubocop: disable Metrics/BlockLength
get '/' do
login_msg = session.delete(:login_msg)
Expand All @@ -66,7 +67,7 @@ def config
state: SecureRandom.hex,
userinfo: userinfo,
access_denied: params[:error] == 'access_denied',
},
}
rescue AppError => e
[500, erb(:errors, locals: { error: e.message })]
rescue Errno::ECONNREFUSED, Faraday::ConnectionFailed => e
Expand Down Expand Up @@ -338,16 +339,6 @@ def logout_uri
"#{endpoint}?#{request_params}"
end

def logout_config
{
end_session_endpoint: openid_configuration[:end_session_endpoint],
params: {
client_id: client_id,
post_logout_redirect_uri: File.join(config.redirect_uri, 'logout'),
state: SecureRandom.hex,
}
}
end
def json(response)
JSON.parse(response.to_s).with_indifferent_access
end
Expand Down

0 comments on commit b0d9a68

Please sign in to comment.