BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
7c1c0388
Commit
7c1c0388
authored
Apr 23, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://gitlab.com/gitlab-org/gitlab-ce
parents
3bb8c17c
3295a4db
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
2 deletions
+7
-2
application_helper.rb
app/helpers/application_helper.rb
+1
-1
gitlab.yml.example
config/gitlab.yml.example
+1
-0
devise.rb
config/initializers/devise.rb
+3
-1
omniauth.md
doc/integration/omniauth.md
+2
-0
No files found.
app/helpers/application_helper.rb
View file @
7c1c0388
...
@@ -75,7 +75,7 @@ module ApplicationHelper
...
@@ -75,7 +75,7 @@ module ApplicationHelper
else
else
gravatar_url
=
request
.
ssl?
||
gitlab_config
.
https
?
Gitlab
.
config
.
gravatar
.
ssl_url
:
Gitlab
.
config
.
gravatar
.
plain_url
gravatar_url
=
request
.
ssl?
||
gitlab_config
.
https
?
Gitlab
.
config
.
gravatar
.
ssl_url
:
Gitlab
.
config
.
gravatar
.
plain_url
user_email
.
strip!
user_email
.
strip!
sprintf
gravatar_url
,
hash:
Digest
::
MD5
.
hexdigest
(
user_email
.
downcase
),
size:
size
sprintf
gravatar_url
,
hash:
Digest
::
MD5
.
hexdigest
(
user_email
.
downcase
),
size:
size
,
email:
user_email
end
end
end
end
...
...
config/gitlab.yml.example
View file @
7c1c0388
...
@@ -122,6 +122,7 @@ production: &base
...
@@ -122,6 +122,7 @@ production: &base
## Gravatar
## Gravatar
gravatar:
gravatar:
enabled: true # Use user avatar image from Gravatar.com (default: true)
enabled: true # Use user avatar image from Gravatar.com (default: true)
# gravatar urls: possible placeholders: %{hash} %{size} %{email}
# plain_url: "http://..." # default: http://www.gravatar.com/avatar/%{hash}?s=%{size}&d=mm
# plain_url: "http://..." # default: http://www.gravatar.com/avatar/%{hash}?s=%{size}&d=mm
# ssl_url: "https://..." # default: https://secure.gravatar.com/avatar/%{hash}?s=%{size}&d=mm
# ssl_url: "https://..." # default: https://secure.gravatar.com/avatar/%{hash}?s=%{size}&d=mm
...
...
config/initializers/devise.rb
View file @
7c1c0388
...
@@ -223,6 +223,7 @@ Devise.setup do |config|
...
@@ -223,6 +223,7 @@ Devise.setup do |config|
method:
Gitlab
.
config
.
ldap
[
'method'
],
method:
Gitlab
.
config
.
ldap
[
'method'
],
bind_dn:
Gitlab
.
config
.
ldap
[
'bind_dn'
],
bind_dn:
Gitlab
.
config
.
ldap
[
'bind_dn'
],
password:
Gitlab
.
config
.
ldap
[
'password'
],
password:
Gitlab
.
config
.
ldap
[
'password'
],
filter:
Gitlab
.
config
.
ldap
[
'user_filter'
],
name_proc:
email_stripping_proc
name_proc:
email_stripping_proc
end
end
...
@@ -244,4 +245,4 @@ Devise.setup do |config|
...
@@ -244,4 +245,4 @@ Devise.setup do |config|
config
.
omniauth
provider
[
'name'
].
to_sym
,
*
provider_arguments
config
.
omniauth
provider
[
'name'
].
to_sym
,
*
provider_arguments
end
end
end
end
\ No newline at end of file
doc/integration/omniauth.md
View file @
7c1c0388
...
@@ -21,6 +21,7 @@ Before configuring individual OmniAuth providers there are a few global settings
...
@@ -21,6 +21,7 @@ Before configuring individual OmniAuth providers there are a few global settings
```
```
2.
Find the section dealing with OmniAuth. The section will look similar to the following.
<br
/>
2.
Find the section dealing with OmniAuth. The section will look similar to the following.
<br
/>
```
```
## OmniAuth settings
## OmniAuth settings
omniauth:
omniauth:
...
@@ -50,6 +51,7 @@ Before configuring individual OmniAuth providers there are a few global settings
...
@@ -50,6 +51,7 @@ Before configuring individual OmniAuth providers there are a few global settings
# app_secret: 'YOUR APP SECRET',
# app_secret: 'YOUR APP SECRET',
# args: { scope: 'user:email' } }
# args: { scope: 'user:email' } }
```
```
3.
Change
`enabled`
to
`true`
.
3.
Change
`enabled`
to
`true`
.
4.
Consider the next two configuration options:
`allow_single_sign_on`
and
`block_auto_created_users`
.
4.
Consider the next two configuration options:
`allow_single_sign_on`
and
`block_auto_created_users`
.
*
`allow_single_sign_on`
defaults to
`false`
. If
`false`
users must be created manually or they will not be able to
*
`allow_single_sign_on`
defaults to
`false`
. If
`false`
users must be created manually or they will not be able to
...
...
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