Skip to content

Commit

Permalink
Merge pull request #919 from alphagov/fix-backchannel-logout
Browse files Browse the repository at this point in the history
Rename parameter variable
  • Loading branch information
KludgeKML committed Jul 9, 2024
2 parents e3e9fb4 + f447020 commit 37474ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/oidc_events_controller.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class OidcEventsController < ApplicationController
def backchannel_logout
logout_token = oidc_client.logout_token(logout_token)
logout_token = oidc_client.logout_token(logout_token_jwt)
if logout_token
user_id = logout_token[:logout_token].sub
LogoutNotice.new(user_id).persist
Expand All @@ -13,7 +13,7 @@ def backchannel_logout

private

def logout_token
def logout_token_jwt
params.require(:logout_token)
end

Expand Down

0 comments on commit 37474ae

Please sign in to comment.