Hi Tomaz,

I'm not sure if it's the same in DW 0.8.5, but in v1.0, you can register 
the AuthenticationFeature at request time, on the Invocation.Builder 
object, rather than registering against the client:

Eg:
    // Build the request builder, with the authentication properties
    Invocation.Builder builder = 
client.target(baseUrl).register(authenticationFeature) ...

I hope that's useful!

Thanks,
Matt

On Monday, 12 September 2016 09:39:38 UTC+1, Tomaž Majerhold wrote:
>
> Once I register HttpAuthenticationFeature then it can not be changed and 
> I'm getting this message:
>
>
> 'org.glassfish.jersey.client.authentication.HttpAuthenticationFeature: 
> Existing previous registration found for the type'
>
>
> Is there any way to achieve that you can  register 
> HttpAuthenticationFeature more then once.
>
>
> Regards, Tomaz
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"dropwizard-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to