We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e01725 commit 645a1d9Copy full SHA for 645a1d9
lib/omniauth/strategies/microsoft_graph.rb
@@ -15,11 +15,10 @@ class MicrosoftGraph < OmniAuth::Strategies::OAuth2
15
}
16
17
option :token_params, {
18
- resource: 'https://graph.microsoft.com/'
19
20
21
option :scope, "https://graph.microsoft.com/profile https://graph.microsoft.com/email https://graph.microsoft.com/User.Read https://graph.microsoft.com/User.ReadBasic.All"
22
-
+
23
uid { raw_info["id"] }
24
25
info do
@@ -40,7 +39,7 @@ class MicrosoftGraph < OmniAuth::Strategies::OAuth2
40
39
end
41
42
def raw_info
43
- @raw_info ||= access_token.get(token_params.resource + 'v1.0/me').parsed
+ @raw_info ||= access_token.get('https://graph.microsoft.com/v1.0/me').parsed
44
45
46
0 commit comments