lib/omniauth/strategies/tent.rb in omniauth-tent-0.1.4 vs lib/omniauth/strategies/tent.rb in omniauth-tent-0.1.5
- old
+ new
@@ -80,10 +80,10 @@
session["omniauth.#{key}"]
end
def perform_discovery!
client = ::TentClient.new
- @profile, @server_url = client.discover(request[:entity]).get_profile
+ @profile, @server_url = client.discover(get_state(:entity)).get_profile
set_state(:server_url, @server_url)
set_state(:profile, @profile)
end
def find_or_create_app!