summaryrefslogtreecommitdiff
path: root/net/rubygem-omniauth-azure-oauth2/files/patch-lib-omniauth-strategies-azure_oauth2.rb
blob: 472b951e4694ff1d6bbe37a42d07bb65934b75fd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- lib/omniauth/strategies/azure_oauth2.rb.orig	2022-08-12 07:08:52 UTC
+++ lib/omniauth/strategies/azure_oauth2.rb
@@ -65,7 +65,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