Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

#1097: make admin controller forbidden by default #1106

Merged
merged 1 commit into from
Jun 13, 2018

Conversation

nbulaj
Copy link
Member

@nbulaj nbulaj commented Jun 13, 2018

Restrict access to admin controller with head 403 if admin_authenticator is not configured by developers.

default: ->(_routes) {}
default: (lambda do |_routes|
::Rails.logger.warn(
I18n.t('doorkeeper.errors.messages.admin_authenticator_not_configured')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Metrics/LineLength: Line is too long. [86/80]

admin_authenticator is not configured by developers.
@nbulaj nbulaj force-pushed the admin_authenticator_default branch from d8d98bd to 07afb4d Compare June 13, 2018 12:03
@nbulaj nbulaj merged commit 43a993a into master Jun 13, 2018
@nbulaj nbulaj deleted the admin_authenticator_default branch July 17, 2018 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants