-
Notifications
You must be signed in to change notification settings - Fork 3
Setting Initial Super Client for User Authentication
Eliza Margaretha edited this page Apr 11, 2024
·
2 revisions
For initial user authentication, Kustvakt supports OAuth2 authentication token request mechanism by using passwort grant (see OAuth2 token) web-service. To perform such requests, Kustvakt requires an initial super client which can be automatically registered at server start.
- Create a json file with name
initial_super_client.json
in thedata
folder at the project root.
$ cd data
$ touch initial_super_client.json
The json file should contain the client properties similar to the request body in the OAuth2 client registration web-service. For instance:
{
"name":"initial super client",
"type": "CONFIDENTIAL",
"description":"initial super client for user authentication"
}
- Add the following property in the
kustvakt.conf
file.
oauth2.initial.super.client=true
The configuration file should be placed in the data
folder. An example can be found at: /Kustvakt-full/src/main/resources/kustvakt.conf
- Start the Kustvakt jar (usually located at the
target
folder)
java -jar target/Kustvakt-full-*.jar
A file containing a super client id and a super client secret should be generated at data/super_client_info
. For instance:
{
"client_id": "TmhrfP9GF3h6TNp99HLH6h",
"client_secret": "ER_Nvy8BvWsPGXpSdxmJ7Q"
}
- Importing Kustvakt to Eclipse
- Installing Lombok
- Setting annotation processors
- Setting a test environment
- HTTP Basic Authentication
- OAuth2 authorization scopes
- OAuth2 authorization request
- OAuth2 token request
- OAuth2 token revocation
- OAuth2 client registration
- OAuth2 client info
- OAuth2 client deregistration
- OAuth2 client secret reset
- Plugin registration
- Plugin list (marketplace)
- Plugin installation
- Plugin uninstallation
- Installed plugin list
- VC creation and update
- VC deletion
- VC list
- VC info
- VC KoralQuery
- VC statistics
- VC statistics with KoralQuery