Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
7d8eb4dd
Commit
7d8eb4dd
authored
Oct 26, 2017
by
Jarka Kadlecova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bitbucket login
parent
3ddffec0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
changelogs/unreleased/39495-fix-bitbucket-login.yml
changelogs/unreleased/39495-fix-bitbucket-login.yml
+5
-0
lib/omni_auth/strategies/bitbucket.rb
lib/omni_auth/strategies/bitbucket.rb
+4
-0
No files found.
changelogs/unreleased/39495-fix-bitbucket-login.yml
0 → 100644
View file @
7d8eb4dd
---
title
:
Fix bitbucket login
merge_request
:
15051
author
:
type
:
fixed
lib/omni_auth/strategies/bitbucket.rb
View file @
7d8eb4dd
...
@@ -36,6 +36,10 @@ module OmniAuth
...
@@ -36,6 +36,10 @@ module OmniAuth
email_response
=
access_token
.
get
(
'api/2.0/user/emails'
).
parsed
email_response
=
access_token
.
get
(
'api/2.0/user/emails'
).
parsed
@emails
||=
email_response
&&
email_response
[
'values'
]
||
nil
@emails
||=
email_response
&&
email_response
[
'values'
]
||
nil
end
end
def
callback_url
options
[
:redirect_uri
]
||
(
full_host
+
script_name
+
callback_path
)
end
end
end
end
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment