Authentication
Overview
There are three levels where you can change authentication settings for an instance applying in the following order:
- You can define authentication settings for an instance which will be used in the first place
- If an instance has no authentication settings, settings from its scope will be used
- If a scope has no settings, then default settings will be used
You can define default authentication settings in default settings at Connections tab:
Custom Authentication
One of the plugin’s abilities is the ability to create a custom authentication plugin that can be added in Connections tab:
There are 3 classes which you should implement for:
import org.kdb.inside.brains.core.credentials.CredentialEditor;
import org.kdb.inside.brains.core.credentials.CredentialProvider;
import org.kdb.inside.brains.core.credentials.CredentialsResolvingException;
and add one property into your Manifest file:
CredentialsProvider: <your class>
There is a small example created that does nothing but could be a good start: https://github.com/kdbinsidebrains/credentials