[
https://issues.apache.org/jira/browse/NUTCH-2285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15360343#comment-15360343
]
ASF GitHub Bot commented on NUTCH-2285:
---------------------------------------
Github user kamaci commented on a diff in the pull request:
https://github.com/apache/nutch/pull/126#discussion_r69383358
--- Diff: src/java/org/apache/nutch/api/NutchServer.java ---
@@ -108,8 +118,41 @@ public NutchServer() {
application.setStatusService(new ErrorStatusService());
childContext.getAttributes().put(NUTCH_SERVER, this);
- // Attach the application.
- component.getDefaultHost().attach(application);
+ AuthenticationTypeEnum authenticationType =
configManager.get(ConfigResource.DEFAULT)
+ .getEnum("restapi.auth", AuthenticationTypeEnum.NONE);
+
+ if (authenticationType == AuthenticationTypeEnum.NONE) {
--- End diff --
@lewismc I've added switch with enum support.
> Digest Authentication Support for REST API
> ------------------------------------------
>
> Key: NUTCH-2285
> URL: https://issues.apache.org/jira/browse/NUTCH-2285
> Project: Nutch
> Issue Type: Sub-task
> Components: REST_api, web gui
> Reporter: Furkan KAMACI
> Assignee: Furkan KAMACI
> Fix For: 2.5
>
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)