Omniauth icons won't show up on sign in page
Summary
I set up omniauth in my GitLab-CE installation via omnibus. I also connected my account with the given external accounts. But at the sign in page no icon will appear to login with an external account.
Steps to reproduce
- Install GitLab-CE with Omnibus on Ubuntu 16.04 LTS amd64
- set up Omniauth (see below)
- reconfigure GitLab
- restart GitLab
Expected behavior
Icons on Sign In page to sign in with external providers
Actual behavior
No icons will be shown
Relevant logs and/or screenshots
gitlab.rb config (censored API data with xxx
):
gitlab_rails['omniauth_enabled'] = true
gitlab_rails['omniauth_allow_single_sign_on'] = false
#gitlab_rails['omniauth_auto_sign_in_with_provider'] = 'github'
gitlab_rails['omniauth_block_auto_created_users'] = true
# gitlab_rails['omniauth_auto_link_ldap_user'] = false
# gitlab_rails['omniauth_auto_link_saml_user'] = false
gitlab_rails['omniauth_external_providers'] = ['twitter', 'google_oauth2', 'github']
gitlab_rails['omniauth_providers'] = [
{
"name" => "google_oauth2",
"app_id" => "xxx",
"app_secret" => "xxx",
"args" => { "access_type" => "offline", "approval_prompt" => "" }
},
{
"name" => "twitter",
"app_id" => "xxx",
"app_secret" => "xxx"
},
{
"name" => "github",
"app_id" => "xxx",
"app_secret" => "xxx",
"url" => "https://github.com/",
"args" => { "scope" => "user:email" }
}
]
Screenshot of profile, connecting accounts worked:
Output of checks
Results of GitLab application Check
Checking GitLab Shell ...
GitLab Shell version >= 3.6.1 ? ... OK (3.6.1)
Repo base directory exists?
default... yes
Repo storage directories are symlinks?
default... no
Repo paths owned by git:git?
default... yes
Repo paths access is drwxrws---?
default... yes
hooks directories in repos are links: ... can't check, you have no projects
Running /opt/gitlab/embedded/service/gitlab-shell/bin/check
Check GitLab API access: OK
Access to /var/opt/gitlab/.ssh/authorized_keys: OK
Send ping to redis server: OK
gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Sidekiq ...
Running? ... yes
Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Checking Reply by email ...
Reply by email is disabled in config/gitlab.yml
Checking Reply by email ... Finished
Checking LDAP ...
LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab ...
Git configured with autocrlf=input? ... yes
Database config exists? ... yes
All migrations up? ... yes
Database contains orphaned GroupMembers? ... no
GitLab config exists? ... yes
GitLab config outdated? ... no
Log directory writable? ... yes
Tmp directory writable? ... yes
Uploads directory setup correctly? ... yes
Init script exists? ... skipped (omnibus-gitlab has no init script)
Init script up-to-date? ... skipped (omnibus-gitlab has no init script)
projects have namespace: ... can't check, you have no projects
Redis version >= 2.8.0? ... yes
Ruby version >= 2.1.0 ? ... yes (2.3.1)
Your git bin path is "/opt/gitlab/embedded/bin/git"
Git version >= 2.7.3 ? ... yes (2.7.4)
Active users: 1
Checking GitLab ... Finished
Results of GitLab environment info
System information
System: Ubuntu 16.04
Current User: git
Using RVM: no
Ruby Version: 2.3.1p112
Gem Version: 2.6.6
Bundler Version:1.13.1
Rake Version: 10.5.0
Sidekiq Version:4.1.4
GitLab information
Version: 8.12.3
Revision: 467e1ca
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: postgresql
URL: https://git.capsop.com
HTTP Clone URL: https://git.capsop.com/some-group/some-project.git
SSH Clone URL: git@git.capsop.com:some-group/some-project.git
Using LDAP: no
Using Omniauth: yes
Omniauth Providers: google_oauth2, twitter, github
GitLab Shell
Version: 3.6.1
Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories
Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks/
Git: /opt/gitlab/embedded/bin/git
Possible fixes
Don't know