CAS 7.1.3: We are using cas 7.1.3 and planning to use DynamoDb as our storage . We successfully created cas_tickets and cas_services table for ticketregistry and serviceregistry. We have also seeded the cas_services with one valid service registry entry. But, while bootrunning, its not taking cas_services entries into account. Its just taking in memory service registry entry. My config for service registry looks like below :
cas:
service-registry:
core:
init-from-json: false
dynamo-db:
endpoint:
http://localhost:8000 billing-mode: PAY_PER_REQUEST
region: us-east-1
credential-access-key: dummy
credential-secret-key: dummy
local-instance: true
drop-tables-on-startup: false
prevent-table-creation-on-startup: true
table-name: cas_services
FYI, tables are created and I can see the tables with its entries while I do aws dynamodb scan --table-name cas_services --projection-expression "id, body" --endpoint-url
http://localhost:8000 --output json
I see this result while scanning using above command:
{
"Items": [
{
"body": {
"S": "{\"@class\": \"org.apereo.cas.services.CasRegisteredService\", \"serviceId\": \"^https?://localhost(:[0-9]+)?/.*\", \"name\": \"localhost\", \"id\": 8444, \"evaluationOrder\": 10, \"enabled\": true, \"ssoEnabled\": true, \"accessStrategy\": {\"@class\": \"org.apereo.cas.services.DefaultRegisteredServiceAccessStrategy\", \"enabled\": true, \"ssoEnabled\": true, \"requireAllAttributes\": false, \"unauthorizedRedirectUrl\": null}}"
},
"id": {
"N": "8444"
}
}
],
"Count": 1,
"ScannedCount": 1,
"ConsumedCapacity": null
}
Any help here is appreciated. Thank you