Skip to content

Commit

Permalink
Merge pull request #1 from abellotti/dbus_api_service
Browse files Browse the repository at this point in the history
Renaming all auth-api to dbus-api
  • Loading branch information
Fryguy authored Oct 4, 2017
2 parents 0ea753d + e9f895a commit 291461d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dbus_api_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class DBusApiService < Sinatra::Base
DEFAULT_USER_ATTRIBUTES = %w(mail givenname sn displayname domainname).freeze

set :bind, "0.0.0.0"
set :port, ENV.fetch("HTTPD_AUTH_API_SERVICE_PORT", 8080)
set :port, ENV.fetch("HTTPD_DBUS_API_SERVICE_PORT", 8080)

get "/api/user_attrs/:userid", :provides => 'json' do
attrs_needed = params[:attributes].nil? ? DEFAULT_USER_ATTRIBUTES : params[:attributes].split(',')
Expand Down

0 comments on commit 291461d

Please # to comment.