summaryrefslogtreecommitdiff
path: root/net/rubygem-omniauth-azure-oauth2/files/patch-lib-omniauth-strategies-azure_oauth2.rb
blob: e613394fcfada61256fe47877eac1d787ac52ccc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- lib/omniauth/strategies/azure_oauth2.rb.orig	2017-12-06 18:00:39 UTC
+++ lib/omniauth/strategies/azure_oauth2.rb
@@ -61,7 +61,7 @@ module OmniAuth
 
       def raw_info
         # it's all here in JWT http://msdn.microsoft.com/en-us/library/azure/dn195587.aspx
-        @raw_info ||= ::JWT.decode(access_token.token, nil, false).first
+        @raw_info ||= ::JWT.decode(access_token.token, nil, false, algorithm: 'RS256').first
       end
 
     end