You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default option :authorized_users => [] and the code that checks if a user is authorized (when Rexexp, when Array, else) implies that the default option for authorized users is actually an empty list, rather than all authenticated users.
The README still says:
By default, any authenticated user will be able to access the protected routes. Restrict this by setting the authorized_users option.
But, with the default option, an authenticated user will get: User was not found in the authorized users list
In practice, this default-open setting can be enabled by setting :authorized_users => nil in the config.rb file.
The text was updated successfully, but these errors were encountered:
The default option
:authorized_users => []
and the code that checks if a user is authorized (when Rexexp
,when Array
,else
) implies that the default option for authorized users is actually an empty list, rather than all authenticated users.The README still says:
But, with the default option, an authenticated user will get:
User was not found in the authorized users list
In practice, this default-open setting can be enabled by setting
:authorized_users => nil
in the config.rb file.The text was updated successfully, but these errors were encountered: