From 02648b3e3c06cd27aeb6f1721291d35238ec8816 Mon Sep 17 00:00:00 2001 From: bilel-kedidi Date: Wed, 28 Nov 2018 13:20:58 +0100 Subject: [PATCH] Update office365.rb --- lib/omniauth/strategies/office365.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/omniauth/strategies/office365.rb b/lib/omniauth/strategies/office365.rb index 39d800a..ad51865 100644 --- a/lib/omniauth/strategies/office365.rb +++ b/lib/omniauth/strategies/office365.rb @@ -35,6 +35,10 @@ class Office365 < OmniAuth::Strategies::OAuth2 } end + def callback_url + options[:redirect_uri] || (full_host + script_name + callback_path) + end + def raw_info @raw_info ||= access_token.get('api/v2.0/me').parsed end