Skip to content

Commit 645a1d9

Browse files
committed
remove unsupported resource param
1 parent 3e01725 commit 645a1d9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/omniauth/strategies/microsoft_graph.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,10 @@ class MicrosoftGraph < OmniAuth::Strategies::OAuth2
1515
}
1616

1717
option :token_params, {
18-
resource: 'https://graph.microsoft.com/'
1918
}
2019

2120
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-
21+
2322
uid { raw_info["id"] }
2423

2524
info do
@@ -40,7 +39,7 @@ class MicrosoftGraph < OmniAuth::Strategies::OAuth2
4039
end
4140

4241
def raw_info
43-
@raw_info ||= access_token.get(token_params.resource + 'v1.0/me').parsed
42+
@raw_info ||= access_token.get('https://graph.microsoft.com/v1.0/me').parsed
4443
end
4544
end
4645
end

0 commit comments

Comments
 (0)