- Thank you. Still no response: though I checked and made sure no authorization 
is required now.

Could it be a CORS kind of thing?

I am running the ISIS app on localhost:8080 and angular on localhost:8888 ...

Any idea?


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:

    
        IsisSessionFilterForRestfulObjects

org.apache.isis.core.webapp.IsisSessionFilter
        
        
            authenticationSessionStrategy

org.apache.isis.viewer.restfulobjects.server.authentication.AuthenticationSessionStrategyBasicAuth
        
        
            
            whenNoSession
            basicAuthChallenge
        
    

change the authenticationStrategy to:

        
            authenticationSessionStrategy

org.apache.isis.viewer.restfulobjects.server.authentication.AuthenticationSessionStrategyTrusted
        

this will log you in as the "exploration" user.

HTH
Dan





On 12 August 2014 19:56,  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/
>
> >
>
>
>
>

        �

Reply via email to