Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Schmidt committed Sep 12, 2017
1 parent dfe0dd6 commit 29b8170
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions modules/passive/json_web_token.rb
Expand Up @@ -48,13 +48,6 @@ def do_test(chat)
:title => "[Bearer Authentication Scheme] - #{chat.request.path}",
:chat => chat
)

# check signature algo
jwt = auth_match.match(/Bearer (.*)/)[1]
jwt_head = JSON.parse(Base64.decode64(jwt.split('.')[0]))
if jwt_head['alg'] =~ /^HS/

end
end

end
Expand Down

0 comments on commit 29b8170

Please sign in to comment.