Handling OAuth2 errors
This commit is contained in:
parent
89cc2064a2
commit
858ec60482
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@ class Import::BitbucketController < Import::BaseController
|
|||
before_action :verify_bitbucket_import_enabled
|
||||
before_action :bitbucket_auth, except: :callback
|
||||
|
||||
rescue_from OAuth::Error, with: :bitbucket_unauthorized
|
||||
rescue_from OAuth2::Error, with: :bitbucket_unauthorized
|
||||
rescue_from Bitbucket::Error::Unauthorized, with: :bitbucket_unauthorized
|
||||
|
||||
def callback
|
||||
|
|
Loading…
Reference in a new issue