[ 
https://issues.apache.org/jira/browse/NUTCH-2294?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15428865#comment-15428865
 ] 

ASF GitHub Bot commented on NUTCH-2294:
---------------------------------------

Github user kamaci commented on a diff in the pull request:

    https://github.com/apache/nutch/pull/142#discussion_r75554347
  
    --- Diff: conf/nutch-default.xml ---
    @@ -1447,20 +1447,12 @@
     </property>
     
     <property>
    -  <name>restapi.auth.username</name>
    -  <value>admin</value>
    +  <name>restapi.auth.users</name>
    +  <value>admin|admin|admin,user|user|user</value>
       <description>
    -    Username for REST API authentication. restapi.auth property should be 
set to either BASIC or DIGEST to use this property.
    -    "admin" is used for username as default.
    -  </description>
    -</property>
    -
    -<property>
    -  <name>restapi.auth.password</name>
    -  <value>nutch</value>
    -  <description>
    -    Password for REST API authentication. restapi.auth property should be 
set to either BASIC or DIGEST to use this property.
    -    "nutch" is used for password as default.
    +    Username, password and role combination for REST API 
authentication/authorization. restapi.auth property should be set to either 
BASIC or DIGEST to use this property.
    +    Username, password and role should be delimited by pipe character (|) 
Every user should be separated with comma character (,). i.e. 
admin|admin|admin,user|user|user.
    +    Default is admin|admin|admin.
    --- End diff --
    
    I've added it to upcoming commit.


> Authorization Support for REST API
> ----------------------------------
>
>                 Key: NUTCH-2294
>                 URL: https://issues.apache.org/jira/browse/NUTCH-2294
>             Project: Nutch
>          Issue Type: Sub-task
>          Components: REST_api, web gui
>            Reporter: Furkan KAMACI
>            Assignee: Furkan KAMACI
>             Fix For: 2.4
>
>
> Add authorization for Nutch REST API.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to