This service allows acts as the authoritative gateway to create, update and revoke API keys.
- Java 8
- AWS Lambda
./gradlew shadowJarVia environment variables:
| Key Name | Required | Default | Example |
|---|---|---|---|
EVENT_STORE_SNS_TOPIC_ARN |
Yes | None | arn:aws:sns:region:123456:topic-name |
S3_BUCKET_NAME |
Yes | None | s3BucketName |
Follow the Build instructions.
In wizard:
- Name:
solid-server-api-key-service - Runtime:
Java 8 - Role: Existing
- Existing Role:
solid-server-api-key-service
In Lambda view:
-
Function code
- Code entry type: Upload .zip or .jar
- Function package: Select
repo:/service/api-key-service/build/libs/api-key-service.jar - Handler:
LambdaApiKeyService::handleRequest
-
Environment variables
Name Value EVENT_STORE_SNS_TOPIC_ARNARN of SNS topic solid-server-store-eventsS3_BUCKET_NAMEsolid-server-storage -
Basic Settings
- Memory: 192 MB
- Timeout:
1min0sec
make pushInput is a JSON object of the following example format:
{
"type": "CreateAction",
"object": {
"agent": "https://<Pod hostname>/profile/card#me",
"instrument": "https://<Pod Hostname>/profile/card#me"
}
}type: Required - Must beCreateActionobject: Requiredagent: Optional - IRI of the agentinstrument: Required - IRI of the instrument
Output is a JSON object of the following format:
{
"id": "abcdefghij123456"
}id: ID of the key which was created.
To be implemented
To be implemented