Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/johnyannj/cassandra-secure-plugin
Cassandra security authentication plug-in based on SCRAM-SHA-256 algorithm.
https://github.com/johnyannj/cassandra-secure-plugin
cassandra java scram scram-sha256
Last synced: about 2 months ago
JSON representation
Cassandra security authentication plug-in based on SCRAM-SHA-256 algorithm.
- Host: GitHub
- URL: https://github.com/johnyannj/cassandra-secure-plugin
- Owner: johnyannj
- License: apache-2.0
- Created: 2018-10-01T03:10:53.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-07-06T23:51:40.000Z (over 1 year ago)
- Last Synced: 2023-07-26T23:08:43.120Z (over 1 year ago)
- Topics: cassandra, java, scram, scram-sha256
- Language: Java
- Homepage:
- Size: 21.5 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cassandra Secure Plugin
#####
Cassandra security authentication plug-in based on SCRAM-SHA-256 algorithm.RFC5802: https://tools.ietf.org/html/rfc5802
RFC7677: https://tools.ietf.org/html/rfc7677## Compile
`
mvn clean package
`## Server
Put cassandra-secure-plugin-1.x.x.jar to $CASSANDRA_HOME/lib
Modify cassandra.yaml:
```
authenticator: com.zhaoyanblog.cassandra.server.ScramAuthenticator
authorizer: CassandraAuthorizer
role_manager: com.zhaoyanblog.cassandra.server.ScramRoleManager
```## Client
The project is available on Maven Central. You can install it in your application using the following Maven dependency
```
com.zhaoyanblog
cassandra-secure-plugin
1.0.0
```
Build Cluster with cassandra java-driver like this:```
Cluster cluster = Cluster.builder()
.addContactPoint("127.0.0.1")
.withAuthProvider(new ScramAuthProvider("your username","your password"))
.build();
Session session = cluster.connect();
```
# License
Copyright 2018, zhaoyanblog.comLicensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.