Skip to content

Commit da0e4e0

Browse files
committed
make sure callback url does not have query params because microsoft has strict interpretation of redirect_uri
1 parent 645a1d9 commit da0e4e0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/omniauth/strategies/microsoft_graph.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ class MicrosoftGraph < OmniAuth::Strategies::OAuth2
4141
def raw_info
4242
@raw_info ||= access_token.get('https://graph.microsoft.com/v1.0/me').parsed
4343
end
44+
45+
def callback_url
46+
options[:callback_url] || full_host + script_name + callback_path
47+
end
4448
end
4549
end
4650
end

0 commit comments

Comments
 (0)