Closed oo00spy00oo closed 1 year ago
@oo00spy00oo you probably need to specify the auth provider class in the application.yml, like:
cassandra:
default:
advanced:
ssl-engine-factory: false
metadata:
schema:
enabled: false
auth-provider:
class: PlainTextAuthProvider
username: "<REDACTED>"
password: "<REDACTED>"
basic:
load-balancing-policy:
local-datacenter: <REDACTED>
contact-points:
- "<REDACTED>:9042"
session-name: "<REDACTED>"
you can look at this issue for the full list of configuration items for reference: https://github.com/micronaut-projects/micronaut-cassandra/issues/8 . the config is mapped onto datastax driver so the config starts after the key.
@oo00spy00oo Is this still a problem for you?
Please see the datastax driver manual for auth. It states you must provide an auth provider, using – as noted in comments above - the advanced.auth-provider.class
property. The driver provides PlainTextAuthProvider
for that. Your example is missing that. Please try adding that, or programmatically, as per the driver docs.
If you still have a problem, feel free to reopen this issue with a complete example that exposes the issue you are having with it (not just your build scripts).
Task List
Expected Behaviour
Cassandra with authentication should be worked :(
Actual Behaviour
Environment Information
Example Application
build.gradle
gradle.properties
application.yml