Skip to content

Commit 0a750a6

Browse files
committed
Accept access_token in callback phrase
1 parent 5cfc5c3 commit 0a750a6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/omniauth/strategies/microsoft_graph.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,14 @@ def authorize_params
5353
def full_name
5454
raw_info["displayName"].presence || raw_info.values_at("givenName", "surname").compact.join(' ')
5555
end
56+
57+
def build_access_token
58+
if request.params['access_token']
59+
::OAuth2::AccessToken.from_hash(client, request.params.dup)
60+
else
61+
super
62+
end
63+
end
5664
end
5765
end
5866
end

0 commit comments

Comments
 (0)