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.
2 parents dcf2174 + adfd75e commit 5ac8cedCopy full SHA for 5ac8ced
lib/omniauth/strategies/microsoft_graph.rb
@@ -31,6 +31,10 @@ class MicrosoftGraph < OmniAuth::Strategies::OAuth2
31
'params' => access_token.params
32
}
33
end
34
+
35
+ def callback_url
36
+ options[:redirect_uri] || (full_host + script_name + callback_path)
37
+ end
38
39
def raw_info
40
@raw_info ||= access_token.get('https://graph.microsoft.com/v1.0/me').parsed
@@ -47,7 +51,7 @@ def authorize_params
47
51
48
52
49
53
def full_name
50
- raw_info.values_at("givenName", "surname").compact.join(' ')
54
+ raw_info["displayName"].presence || raw_info.values_at("givenName", "surname").compact.join(' ')
55
56
57
0 commit comments