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