-
Notifications
You must be signed in to change notification settings - Fork 3
Plugin Registration
Eliza Margaretha Illig edited this page May 31, 2024
·
7 revisions
Plugins are OAuth2 clients that have source describing their settings. Although plugins may not necessarily need authorization, they must be registered as OAuth2 clients. OAuth2 client registration describes the registration procedure including the required parameters.
Particularly for plugins, the registration requires parameter source
describing the plugin settings. After registration, plugins have to be reviewed by admins and cannot be installed until they are permitted.
To ensure security, Kustvakt only allow confidential plugins for the time being, that requires the plugins to be able to store their credentials (client id and secrets).
Registering a confidential client
curl -v -H "Content-Type: application/json" -H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' -d '{"name":"My plugin","type":"CONFIDENTIAL","description":" a plugin","url":"http://example.plugin.com", "redirect_uri":"http://example.plugin.com/redirect","refresh_token_expiry" : 7776000,"source": {"name":"My plugin"}}' http://localhost:8089/api/v1.0/oauth2/client/register
Response
{ "client_id" : "tG6HNFmrt7dm7RHJNmGh9H", "client_secret" : "NHInXJ7EmYUiC-EPu18EYg" }
- 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
- User group creation
- User group deletion
- User group list
- Member invitation
- Member deletion
- Approval of member invitation
- Rejection of member invitation
- Member role management
- Virtual corpus creation and update
- Virtual corpus deletion
- Virtual corpus list
- Virtual corpus retrieval
- Virtual corpus statistics
- Virtual corpus statistics with KoralQuery