Example MongoDB document:
{ "_id": "123456", "scopes": ["read", "write"] }
Configuration example:
<apiKey> <mongoDBApiKeyStore connection="mongodb://localhost:27017" database="security" collection="apikeys"/> </apiKey>
Name | Required | Default | Description | Example |
---|---|---|---|---|
database | false | - | The database name where API keys are stored.
|
security |
connection | false | - | MongoDB connection string.
|
mongodb://localhost:27017 |
collection | false | - | The collection name within the database containing the API key documents.
|
apikeys |