You might be better off disabling authentication to begin with, just to
tackle one thing at a time.
In the web.xml, you'll see:
<filter>
<filter-name>IsisSessionFilterForRestfulObjects</filter-name>
<filter-class>org.apache.isis.core.webapp.IsisSessionFilter</filter-class>
<!-- authentication required for REST -->
<init-param>
<param-name>authenticationSessionStrategy</param-name>
<param-value>org.apache.isis.viewer.restfulobjects.server.authentication.AuthenticationSessionStrategyBasicAuth</param-value>
</init-param>
<init-param>
<!-- what to do if no session was found; we indicate to issue a
401 basic authentication challenge -->
<param-name>whenNoSession</param-name>
<param-value>basicAuthChallenge</param-value>
</init-param>
</filter>
change the authenticationStrategy to:
<init-param>
<param-name>authenticationSessionStrategy</param-name>
<param-value>org.apache.isis.viewer.restfulobjects.server.authentication.AuthenticationSessionStrategyTrusted</param-value>
</init-param>
this will log you in as the "exploration" user.
HTH
Dan
On 12 August 2014 19:56, <[email protected]> wrote:
>
> I tried, for my understanding a very basic request in AngularJs:
>
>
> function ISIS($scope, $http) {
>
> $http({
>
> method: "GET",
>
> url: 'http://localhost:8080/restful/services',
>
> headers: {'Authorization': 'Basic c3ZlbjpwYXNz=='}
>
> }).
>
> success(function(isisdata) {
>
> $scope.isisdata = isisdata;
>
> });
> };
>
>
>
> Can somebody explain where I go wrong? Authotization?
>
>
>
> When I connect to other RESTful Api this way it works.
>
>
>
>
> >
> > sorry not to reply sooner, have been on vacation.
> >>
> > - did you enjoy your holiday? I visited the Highlands of Scotland with
> my
> > youngest son last week...
> >
>
> yup, in Edinburgh for the Fringe [7]. Recommended if you've never done
> it...
>
>
> With respect to AngularJS itself, we do intend to write a library
> >>
> >
> > - Thank you.. I will track these and let you know. Great that you started
> > building for Angular!
> >
> >
> There's a lot to do, so any help gratefully received!
>
> Cheers
> Dan
>
> [7] https://www.edfringe.com/
>
> >
>
>
>
>