[
https://issues.apache.org/jira/browse/KNOX-789?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16019568#comment-16019568
]
Nixon Rodrigues commented on KNOX-789:
--------------------------------------
[~Wancy] , Since you are getting issue for basic auth in Atlas, Pass user
credentials from header -u in curl for authentication.
Use of dispatch in service, will pass through all the headers
<dispatch
classname="org.apache.hadoop.gateway.dispatch.PassAllHeadersDispatch"/>
https://cwiki.apache.org/confluence/display/KNOX/Proxying+a+UI+using+Knox
{code}
[root@rd-atl-080517-2 bin]# curl -i -k -L -u admin:admin -X GET
'https://knox-gateway:8443/gateway/ui/atlas/api/atlas/v2/types/typedefs?type=classification&_=1495442879421'
HTTP/1.1 200 OK
Date: Mon, 22 May 2017 08:50:03 GMT
Date: Mon, 22 May 2017 08:50:03 GMT
Set-Cookie: ATLASSESSIONID=oscz5x1nocfn14y4bj0yv52vs;Path=/;HttpOnly
Expires: Thu, 01 Jan 1970 00:00:00 GMT
X-Frame-Options: DENY
Content-Type: application/json; charset=UTF-8
Server: Jetty(9.2.12.v20150709)
Content-Length: 2070
{"enumDefs":[],"structDefs":[],"classificationDefs":[{"category":"CLASSIFICATION","guid":"abce22ee-a6ed-40f3-816a-555049997b71","createTime":1495108634535,"updateTime":1495108634535,"version":1,"name":"KnoxProxy","description":"KnoxProxy","typeVersion":"1.0","attributeDefs":[],"superTypes":[]},{"category":"CLASSIFICATION","guid":"2410969e-f592-4db8-82d7-47bf6996d090","createTime":1495011488803,"updateTime":1495011488803,"version":1,"name":"PII","description":"PII
Classification","typeVersion":"1.0","attributeDefs":[],"superTypes":[]},{"category":"CLASSIFICATION","guid":"ac122a83-37e1-4c60-a260-2a262c98b2f8","createTime":1495011490270,"updateTime":1495011490270,"version":1,"name":"JdbcAccess","description":"JdbcAccess
Classification","typeVersion":"1.0","attributeDefs":[],"superTypes":[]},{"category":"CLASSIFICATION","guid":"7bff86b0-a77e-43a0-9577-c125196bb497","createTime":1495011490296,"updateTime":1495011490296,"version":1,"name":"Log
Data","description":"LogData
Classification","typeVersion":"1.0","attributeDefs":[],"superTypes":[]},{"category":"CLASSIFICATION","guid":"1099a2a2-932a-4f1d-9f6c-4ed04021f88e","createTime":1495011488817,"updateTime":1495011488817,"version":1,"name":"Metric","description":"Metric
Classification","typeVersion":"1.0","attributeDefs":[],"superTypes":[]},{"category":"CLASSIFICATION","guid":"228842fe-7035-4fd2-9c6c-48b1d74a0995","createTime":1495011487356,"updateTime":1495011487356,"version":1,"name":"Dimension","description":"Dimension
Classification","typeVersion":"1.0","attributeDefs":[],"superTypes":[]},{"category":"CLASSIFICATION","guid":"900d0441-393e-4b2f-b6f5-161d5b057d36","createTime":1495011489541,"updateTime":1495011489541,"version":1,"name":"ETL","description":"ETL
Classification","typeVersion":"1.0","attributeDefs":[],"superTypes":[]},{"category":"CLASSIFICATION","guid":"42d1752d-58de-4816-8bcb-7157eda14d7f","createTime":1495011488088,"updateTime":1495011488088,"version":1,"name":"Fact","description":"Fact
Classification","typeVersion":"1.0","attributeDefs":[],"superTypes":[]}],"entityDefs":[]}
{code}
> Apache Atlas REST API support
> -----------------------------
>
> Key: KNOX-789
> URL: https://issues.apache.org/jira/browse/KNOX-789
> Project: Apache Knox
> Issue Type: New Feature
> Environment: all
> Reporter: Jeffrey E Rodriguez
> Assignee: Shi Wang
> Fix For: 0.13.0
>
> Attachments: 0001-Apache-Atlas-REST-API-support.patch, KNOX-789.patch
>
>
> Apache REST API support through Knox
> https://atlas.incubator.apache.org/api/rest.html
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)