Big Brain Authorization Service - oAuth 2.0
- Identity Service for BigBrain Solution website made in ASP.NET CORE
Work in progress...
/BigBrainID> docker compose-up
/BigBrainID/Application/Helpers
In CassandraConnectionHelper.cs
Should look like this:
public static Cluster Connect(CassandraSettings cassandraSettings)
{
var options = new SSLOptions(SslProtocols.Tls12, true, (sender, certificate, chain, errors) => true);
options.SetHostNameResolver((ipAddress) => cassandraSettings.IpAddress);
var cluster = Cluster.Builder()
.WithCredentials(cassandraSettings.Username, cassandraSettings.Password)
.WithPort(cassandraSettings.Port)
.AddContactPoint(cassandraSettings.IpAddress)
.WithSSL(options)
.Build();
return cluster;
}
Open appsettings.json
Edit
"CassandraSettings": {
"IpAddress": "<db>.cassandra.cosmos.azure.com",
"Username": "<username>",
"Password": "<your_password>",
"Port": 10350
}
- ASP.NET CORE
- Cassandra