Skip to content

Commit

Permalink
chore: Fix rack deprecation warnings. (#453)
Browse files Browse the repository at this point in the history
  • Loading branch information
edariedl committed Sep 19, 2023
1 parent 3ed2ef4 commit d24a03d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/googleauth/web_user_authorizer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -192,13 +192,13 @@ def get_credentials user_id, request = nil, scope = nil
end

def self.extract_callback_state request
state = MultiJson.load(request[STATE_PARAM] || "{}")
state = MultiJson.load(request.params[STATE_PARAM] || "{}")
redirect_uri = state[CURRENT_URI_KEY]
callback_state = {
AUTH_CODE_KEY => request[AUTH_CODE_KEY],
ERROR_CODE_KEY => request[ERROR_CODE_KEY],
AUTH_CODE_KEY => request.params[AUTH_CODE_KEY],
ERROR_CODE_KEY => request.params[ERROR_CODE_KEY],
SESSION_ID_KEY => state[SESSION_ID_KEY],
SCOPE_KEY => request[SCOPE_KEY]
SCOPE_KEY => request.params[SCOPE_KEY]
}
[callback_state, redirect_uri]
end
Expand Down

0 comments on commit d24a03d

Please sign in to comment.