Skip to content

Commit

Permalink
Add LDAP authentication strategy to omniauth
Browse files Browse the repository at this point in the history
  • Loading branch information
itrich committed Oct 7, 2019
1 parent c52ef10 commit c8d57a1
Show file tree
Hide file tree
Showing 7 changed files with 318 additions and 17 deletions.
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ gem "figaro"
# Secure decidim with a password until all requirements are met
gem "lockup"

gem "gitlab_omniauth-ldap"

group :development, :test do
gem "byebug", "~> 10.0", platform: :mri
gem "decidim-dev", "0.18.0"
Expand Down
40 changes: 23 additions & 17 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,7 @@ GEM
actionpack (>= 3.0)
cells (>= 4.1.6, < 5.0.0)
charlock_holmes (0.7.6)
childprocess (2.0.0)
rake (< 13.0)
childprocess (3.0.0)
chronic (0.10.2)
coercible (1.0.0)
descendants_tracker (~> 0.0.1)
Expand Down Expand Up @@ -344,7 +343,7 @@ GEM
railties (>= 4.2)
doorkeeper-i18n (4.0.1)
equalizer (0.0.11)
erb_lint (0.0.29)
erb_lint (0.0.30)
activesupport
better_html (~> 1.0.7)
html_tokenizer
Expand Down Expand Up @@ -382,7 +381,12 @@ GEM
activesupport (>= 4.1, < 6.0)
railties (>= 4.1, < 6.0)
tzinfo (~> 1.2, >= 1.2.2)
geocoder (1.5.1)
geocoder (1.5.2)
gitlab_omniauth-ldap (2.1.1)
net-ldap (~> 0.16)
omniauth (~> 1.3)
pyu-ruby-sasl (>= 0.0.3.3, < 0.1)
rubyntlm (~> 0.5)
globalid (0.4.2)
activesupport (>= 4.2.0)
graphiql-rails (1.4.11)
Expand Down Expand Up @@ -448,10 +452,9 @@ GEM
actionmailer (>= 3.2)
letter_opener (~> 1.0)
railties (>= 3.2)
listen (3.1.5)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
ruby_dep (~> 1.2)
listen (3.2.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
lockup (1.5.1)
rails (>= 3, < 6.1)
lograge (0.11.2)
Expand Down Expand Up @@ -487,6 +490,7 @@ GEM
multi_xml (0.6.0)
multipart-post (2.1.1)
mustache (1.1.0)
net-ldap (0.16.1)
netrc (0.11.0)
nio4r (2.5.2)
nobspw (0.6.1)
Expand Down Expand Up @@ -526,7 +530,7 @@ GEM
request_store (~> 1.1)
paper_trail-association_tracking (1.1.1)
parallel (1.17.0)
parser (2.6.4.1)
parser (2.6.5.0)
ast (~> 2.4.0)
pg (1.1.4)
pg_search (2.3.0)
Expand All @@ -544,6 +548,7 @@ GEM
progressbar (1.10.1)
public_suffix (4.0.1)
puma (3.12.1)
pyu-ruby-sasl (0.0.3.3)
rack (2.0.7)
rack-attack (5.4.2)
rack (>= 1.0, < 3)
Expand Down Expand Up @@ -584,7 +589,7 @@ GEM
rake (>= 0.8.7)
thor (>= 0.19.0, < 2.0)
rainbow (3.0.0)
rake (12.3.3)
rake (13.0.0)
ransack (2.1.1)
actionpack (>= 5.0)
activerecord (>= 5.0)
Expand Down Expand Up @@ -621,13 +626,13 @@ GEM
rspec-rails (~> 3.2)
rspec-core (3.8.2)
rspec-support (~> 3.8.0)
rspec-expectations (3.8.4)
rspec-expectations (3.8.5)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.8.0)
rspec-html-matchers (0.9.1)
nokogiri (~> 1)
rspec (>= 3.0.0.a, < 4)
rspec-mocks (3.8.1)
rspec-mocks (3.8.2)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.8.0)
rspec-rails (3.8.2)
Expand All @@ -638,7 +643,7 @@ GEM
rspec-expectations (~> 3.8.0)
rspec-mocks (~> 3.8.0)
rspec-support (~> 3.8.0)
rspec-support (3.8.2)
rspec-support (3.8.3)
rspec_junit_formatter (0.3.0)
rspec-core (>= 2, < 4, != 2.12.0)
rubocop (0.58.2)
Expand All @@ -653,7 +658,7 @@ GEM
rubocop (>= 0.58.0)
ruby-ole (1.2.12.2)
ruby-progressbar (1.10.1)
ruby_dep (1.5.0)
rubyntlm (0.6.2)
rubyzip (1.3.0)
safe_yaml (1.0.5)
sass (3.4.25)
Expand All @@ -668,10 +673,10 @@ GEM
sprockets-rails
tilt
searchlight (4.1.0)
selenium-webdriver (3.142.5)
childprocess (>= 0.5, < 3.0)
selenium-webdriver (3.142.6)
childprocess (>= 0.5, < 4.0)
rubyzip (>= 1.2.2)
sidekiq (6.0.0)
sidekiq (6.0.1)
connection_pool (>= 2.2.2)
rack (>= 2.0.0)
rack-protection (>= 2.0.0)
Expand Down Expand Up @@ -763,6 +768,7 @@ DEPENDENCIES
deface
faker
figaro
gitlab_omniauth-ldap
letter_opener_web (~> 1.3)
listen (~> 3.1)
lockup
Expand Down
Binary file added app/assets/images/buehl/buehl_header_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
177 changes: 177 additions & 0 deletions app/assets/images/buehl/logo_blue.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions app/assets/stylesheets/_buehl.scss
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,11 @@ a:hover .author__name{
z-index: 701;
}

.button--ldap .button--social__icon .icon{
display: unset !important;
height: unset;
}

.section-heading.section-heading:before{
background: image-url("buehl/icon.svg") no-repeat center;
background-size: contain;
Expand Down
Loading

0 comments on commit c8d57a1

Please sign in to comment.