Skip to content

Commit c7e7d3e

Browse files
committed
Removed auth option
1 parent 1d6e58e commit c7e7d3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/omniauth/strategies/microsoft_graph.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class MicrosoftGraph < OmniAuth::Strategies::OAuth2
1111
authorize_url: '/common/oauth2/v2.0/authorize'
1212
}
1313

14-
option :authorize_options, %i[display score auth_type scope prompt login_hint domain_hint response_mode state]
14+
option :authorize_options, %i[display score auth_type scope prompt login_hint domain_hint response_mode]
1515

1616
uid { raw_info["id"] }
1717

@@ -47,7 +47,7 @@ def authorize_params
4747
end
4848

4949
def full_name
50-
[raw_info["givenName"], raw_info["surname"]].compact.join(' ')
50+
raw_info.values_at("givenName", "surname").compact.join(' ')
5151
end
5252
end
5353
end

0 commit comments

Comments
 (0)