The Arquillian tests aren't complete yet. That part is still a WIP.

Sent from my iPhone

> On Oct 12, 2013, at 16:12, Lukáš Vlček <notifications@github.com> wrote:
> 
> In api/src/main/java/org/searchisko/api/rest/AuthenticationInterceptor.java:
> 
> > @@ -85,6 +86,19 @@ public ServerResponse preProcess(HttpRequest request, ResourceMethod method) thr
> >  			}
> >  		}
> >  
> > +		if (!authenticated) {
> > +			// Check username and password as query parameters
> > +			MultivaluedMap<String, String> queryParams = request.getUri().getQueryParameters();
> > +			if (queryParams != null) {
> > +				username = queryParams.getFirst("provider");
> > +				password = queryParams.getFirst("pwd");
> > +				if (username != null && !username.isEmpty() && password != null && !password.isEmpty()) {
> > +					authenticated = providerService.authenticate(username, password);
> > +					authenticationScheme = "CUSTOM";
> > +				}
> > +			}
> > +		}
> > +
> That was just a quick glance... we will have a look at the main part (arquillina) on Monday.
> 
> —
> Reply to this email directly or view it on GitHub.