[ 
https://issues.apache.org/jira/browse/CAMEL-20795?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrea Cosentino resolved CAMEL-20795.
--------------------------------------
    Resolution: Fixed

> camel-nats - NATS Credential file support
> -----------------------------------------
>
>                 Key: CAMEL-20795
>                 URL: https://issues.apache.org/jira/browse/CAMEL-20795
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-nats
>    Affects Versions: 4.6.0
>            Reporter: Mikael Koskinen
>            Assignee: Andrea Cosentino
>            Priority: Minor
>             Fix For: 4.7.0
>
>
> NATS component currently supports username/password and Token-authentication. 
> Unfortunately all the NATS cloud providers (Scaleway, Synadia) use credential 
> files for authentication. So currently it is not possible to connect NATS 
> component to these hosted NATS solutions.
> Would it be possible to update the NATS component so that it would support 
> the credentials file authentication?
> NATS documentation provides an example of how to connect to a NATS server 
> using the credentials file:
>  
> {code:java}
> Options options = new Options.Builder().
>             server("nats://localhost:4222").
>             authHandler(Nats.credentials("path_to_creds_file")).
>             build();
> Connection nc = Nats.connect(options);
> // Do something with the connection
> nc.close();
> {code}
>  
>  
> This was previously discussed on of 
> https://issues.apache.org/jira/browse/CAMEL-17066



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to