Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Renaming all auth-api to dbus-api #1

Merged
merged 1 commit into from
Oct 4, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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