Skip to content

Commit e6e6d3d

Browse files
author
Eoin Hennessy
committed
According to the Warden docs, #redirect! won't take effect unless a :warden symbol is thrown.
1 parent 791b9f5 commit e6e6d3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/warden_oauth/strategy.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def authenticate!
4444
if params.include?('warden_oauth_provider')
4545
store_request_token_on_session
4646
redirect!(request_token.authorize_url)
47-
47+
throw(:warden)
4848
elsif params.include?('oauth_token')
4949
load_request_token_from_session
5050
if missing_stored_token?

0 commit comments

Comments
 (0)