You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by Herman Yu <he...@teeupdata.com> on 2016/07/06 14:37:40 UTC

authentication with v0.7

Hi,

Is there a way to disable authentication with v0.7 (no login page with UI and REST calls doesn’t require U/P)? We are testing codes (uses atlasClient)  built for v0.5 on v0.7 on a sandbox environment, it fails with authentication. v0.7 is configured using simple file based authentication.

I tried set all authentication.method to false in atlas-application.properties, it seems still default to simple, UI still displays login page and REST calls still failed with authentication failure. 

if not, where is the best place to find changes required to atlasClient based codes to make it work with authentication?

Thanks
Herman.


Re: authentication with v0.7

Posted by Nixon Rodrigues <ni...@freestoneinfotech.com>.
Herman,

Try commenting the below  filter in web.xml
<https://github.com/apache/incubator-atlas/blob/master/webapp/src/main/webapp/WEB-INF/web.xml>
and
restart the atlas server, so that the authentication filters will not be
invoked and api's will be called unauthenticated.

Regards,

Nixon



*   <filter>*
*        <filter-name>springSecurityFilterChain</filter-name>*
*
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>*
*    </filter>*

*    <filter-mapping>*
*        <filter-name>springSecurityFilterChain</filter-name>*
*        <url-pattern>/*</url-pattern>*
*    </filter-mapping>*


On Wed, Jul 6, 2016 at 8:07 PM, Herman Yu <he...@teeupdata.com> wrote:

> Hi,
>
> Is there a way to disable authentication with v0.7 (no login page with UI
> and REST calls doesn’t require U/P)? We are testing codes (uses
> atlasClient)  built for v0.5 on v0.7 on a sandbox environment, it fails
> with authentication. v0.7 is configured using simple file based
> authentication.
>
> I tried set all authentication.method to false in
> atlas-application.properties, it seems still default to simple, UI still
> displays login page and REST calls still failed with authentication failure.
>
> if not, where is the best place to find changes required to atlasClient
> based codes to make it work with authentication?
>
> Thanks
> Herman.
>
>

Re: authentication with v0.7

Posted by Herman Yu <he...@teeupdata.com>.
Thanks Hemanth. This saves my time.  Herman.

> On Jul 6, 2016, at 23:42, Hemanth Yamijala <hy...@hortonworks.com> wrote:
> 
> Hi Herman,
> 
> Sorry, it is not possible to use Apache Atlas 0.7 without an authentication mode. The simplest authentication setup is file based authentication the details of which are documented here: http://atlas.incubator.apache.org/Authentication-Authorization.html
> 
> To use the 0.7 server, you would need to use the 0.7 version of the Atlas client. With it, you can look at the QuickStart example to see how authentication is implemented in the client library.
> 
> https://github.com/apache/incubator-atlas/blob/0.7-incubating/webapp/src/main/java/org/apache/atlas/examples/QuickStart.java
> 
> Specifically, this constructor of AtlasClient: https://github.com/apache/incubator-atlas/blob/0.7-incubating/client/src/main/java/org/apache/atlas/AtlasClient.java#L144
> 
> Hope this helps.
> 
> Thanks
> Hemanth
> ________________________________________
> From: Herman Yu <he...@teeupdata.com>
> Sent: Wednesday, July 06, 2016 8:07 PM
> To: dev@atlas.incubator.apache.org
> Subject: authentication with v0.7
> 
> Hi,
> 
> Is there a way to disable authentication with v0.7 (no login page with UI and REST calls doesn’t require U/P)? We are testing codes (uses atlasClient)  built for v0.5 on v0.7 on a sandbox environment, it fails with authentication. v0.7 is configured using simple file based authentication.
> 
> I tried set all authentication.method to false in atlas-application.properties, it seems still default to simple, UI still displays login page and REST calls still failed with authentication failure.
> 
> if not, where is the best place to find changes required to atlasClient based codes to make it work with authentication?
> 
> Thanks
> Herman.
> 
> 


Re: authentication with v0.7

Posted by Hemanth Yamijala <hy...@hortonworks.com>.
Hi Herman,

Sorry, it is not possible to use Apache Atlas 0.7 without an authentication mode. The simplest authentication setup is file based authentication the details of which are documented here: http://atlas.incubator.apache.org/Authentication-Authorization.html

To use the 0.7 server, you would need to use the 0.7 version of the Atlas client. With it, you can look at the QuickStart example to see how authentication is implemented in the client library.

https://github.com/apache/incubator-atlas/blob/0.7-incubating/webapp/src/main/java/org/apache/atlas/examples/QuickStart.java

Specifically, this constructor of AtlasClient: https://github.com/apache/incubator-atlas/blob/0.7-incubating/client/src/main/java/org/apache/atlas/AtlasClient.java#L144

Hope this helps.

Thanks
Hemanth
________________________________________
From: Herman Yu <he...@teeupdata.com>
Sent: Wednesday, July 06, 2016 8:07 PM
To: dev@atlas.incubator.apache.org
Subject: authentication with v0.7

Hi,

Is there a way to disable authentication with v0.7 (no login page with UI and REST calls doesn’t require U/P)? We are testing codes (uses atlasClient)  built for v0.5 on v0.7 on a sandbox environment, it fails with authentication. v0.7 is configured using simple file based authentication.

I tried set all authentication.method to false in atlas-application.properties, it seems still default to simple, UI still displays login page and REST calls still failed with authentication failure.

if not, where is the best place to find changes required to atlasClient based codes to make it work with authentication?

Thanks
Herman.