openenergysolutions / openfmb.adapters

OpenFMB Adapters
Apache License 2.0
3 stars 1 forks source link

Added JWT support (requires NATS 2.0) #63

Closed emgre closed 5 years ago

emgre commented 5 years ago

Closes #55.

Added NATS 2.0 JWT authentication support.

See https://github.com/openenergysolutions/openfmb.adapters/wiki/NATS-JWT-Security for documentation.

jadamcrain commented 5 years ago

@emgre It's my understanding that the JWT mode is not mutually exclusive with TLS modes, in other words it should be possibly to use the JWT in addition to TLS mutual or client side auth.

I believe that we don't want another value for the security mode enumeration, just an optional section where the JWT stuff can be applied.

emgre commented 5 years ago

You're right, I made the changes. Now, if the user specifies a jwt-creds-file, it uses it, otherwise it does nothing.