Akash,

It looks like you are just starting; I suggest you switch to 7.3 version, 7.1 
is already EOL.
Have you added the feature to build.gradle?
Enable at least debug logging.
See top and bottom of page [1]

It is OK to have multiple service registries, but they should have services 
with different serviceId.

Ray

[1] 
https://apereo.github.io/cas/development/services/DynamoDb-Service-Management.html
________________________________
From: 'Akash Mohapatra' via CAS Community <[email protected]>
Sent: October 16, 2025 10:33
To: CAS Community <[email protected]>
Subject: [cas-user] CAS 7.1.3: Service Registry not loading custom table that 
is created to store service registry

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

--
- Website: https://apereo.github.io/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected]<mailto:[email protected]>.
To view this discussion visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/be944a29-78e5-46c5-bd6b-2cc7ea12ed6bn%40apereo.org<https://groups.google.com/a/apereo.org/d/msgid/cas-user/be944a29-78e5-46c5-bd6b-2cc7ea12ed6bn%40apereo.org?utm_medium=email&utm_source=footer>.

-- 
- Website: https://apereo.github.io/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/YQBP288MB0081AD1C9B13FB5EBD7C0AABCEE9A%40YQBP288MB0081.CANP288.PROD.OUTLOOK.COM.

Reply via email to