Skip to content

Commit

Permalink
Merge pull request lynndylanhurley#674 from milep/master
Browse files Browse the repository at this point in the history
Fix for issue lynndylanhurley#600
  • Loading branch information
booleanbetrayal authored Jul 11, 2016
2 parents 572e9b1 + 668dbaa commit 4175042
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ def set_user_by_token(mapping=nil)

# parse header for values necessary for authentication
uid = request.headers[uid_name] || params[uid_name]
@token = request.headers[access_token_name] || params[access_token_name]
@client_id = request.headers[client_name] || params[client_name]
@token ||= request.headers[access_token_name] || params[access_token_name]
@client_id ||= request.headers[client_name] || params[client_name]

# client_id isn't required, set to 'default' if absent
@client_id ||= 'default'
Expand Down

0 comments on commit 4175042

Please sign in to comment.