[ https://issues.apache.org/jira/browse/CAMEL-20795?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17848493#comment-17848493 ]
Andrea Cosentino commented on CAMEL-20795: ------------------------------------------ I'll work on this > NATS Credential file support > ---------------------------- > > Key: CAMEL-20795 > URL: https://issues.apache.org/jira/browse/CAMEL-20795 > Project: Camel > Issue Type: Bug > Components: camel-nats > Affects Versions: 4.6.0 > Reporter: Mikael Koskinen > Priority: Major > > 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)