Hi Mr David Curry,
I understand your point.
But when I use CAS server, I want to register my new service, what should I
do?
I can use CAS Management Web app to register my new service but, it still
only create a json file in directory /etc/cas/services-repo.
I have tried to config my CAS Management Web to insert new register service
directly to MongoDB, but it still didn't work.
Please help me.
Note: my CAS version is 6.2.1 and my CAS Management Overlay Web App is
6.1.2 (the newest version)
Here is my CAS Mamagement Web App Configuration:
1. build.gradle
compile "org.apereo.cas:cas-server-webapp-tomcat:${casMgmtServerVersion}"
compile
"org.apereo.cas:cas-server-support-configuration-cloud-mongo:${casMgmtServerVersion}"
compile "org.apereo.cas:cas-server-support-mongo:${casMgmtServerVersion}"
compile
"org.apereo.cas:cas-server-support-mongo-service-registry:${casMgmtServerVersion}"
2. Cas Management Global config in MongoDB
"name":"cas.server.name","value":"https://casoverlay.vdc2.com.vn:8443";
"name":"cas.server.prefix","value":"${cas.server.name}/cas"
"name":"mgmt.serverName","value":"https://casoverlay.vdc2.com.vn:8088";
"name":"mgmt.adminRoles[0]","value":"ROLE_ADMIN"
"name":"mgmt.userPropertiesFile","value":"file:/etc/cas/config/users.json"
"name":"mgmt.userRoles[0]","value":"ROLE_USER"
"name":"spring.thymeleaf.mode","value":"HTML"
"name":"server.port","value":"8088"
"name":"server.ssl.enabled","value":"true"}
"name":"server.ssl.keyStore","value":"file:/etc/cas/thekeystore"
"name":"server.ssl.keyStorePassword","value":"changeit"
"name":"server.ssl.keyPassword","value":"changeit"
"name":"cas.service-registry.mongo.host","value":"203.162.141.22"
"name":"cas.service-registry.mongo.client-uri","value":"mongodb://
casuser:[email protected]:27017/cas?authSource=admin&readPreference=primary&appname=MongoDB%20Compass%20Community&ssl=false
"
"name":"cas.service-registry.mongo.port","value":"27017"
"name":"cas.service-registry.mongo.password","value":"Mellon"
"name":"cas.service-registry.mongo.collection","value":"cas-service-registry"
"name":"cas.service-registry.mongo.database-name","value":"cas"
"name":"cas.service-registry.mongo.user-id","value":"casuser"
"name":"cas.service-registry.mongo.ssl-enabled","value":"false"
"name":"cas.service-registry.mongo.drop-collection","value":"false"
Please help me.
Thank you in advance.

Vào Th 3, 25 thg 8, 2020 vào lúc 19:00 David Curry <
[email protected]> đã viết:

> It doesn't do that because it's not supposed to.
>
> Populating an alternate service registry (MongoDB or whatever) from the
> JSON files is a one-time thing the server does to help you "bootstrap" the
> alternate service registry. After that, you don't need the JSON files any
> more (and should turn that registry off). You use the cas-management
> application to manage the service registry from that point forward.
>
>
> --
>
> DAVID A. CURRY, CISSP
> *DIRECTOR • INFORMATION SECURITY & PRIVACY*
> THE NEW SCHOOL • INFORMATION TECHNOLOGY
>
> 71 FIFTH AVE., 9TH FL., NEW YORK, NY 10003
> +1 646 909-4728 • [email protected]
>
>
> On Tue, Aug 25, 2020 at 5:46 AM Napoleon Ponaparte <
> [email protected]> wrote:
>
>>
>> I am successful store service registry in MongoDB, but I have a trouble
>> in there.
>>
>> If I register new service store in  directory /etc/cas/services-repo, CAS
>> server didn't auto store this service to MongoDB. I must restart CAS to do
>> this.
>>
>> So, How could config CAS auto restart to load new service registry to
>> MongoDB?
>>
>> Note: My CAS server at version 6.2.x.
>>
>> Thank you in advance.
>>
>> --
>> - Website: https://apereo.github.io/cas
>> - Gitter Chatroom: https://gitter.im/apereo/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 on the web visit
>> https://groups.google.com/a/apereo.org/d/msgid/cas-user/bbb8c8b6-a16e-4e94-88e3-74e2dd80a934n%40apereo.org
>> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/bbb8c8b6-a16e-4e94-88e3-74e2dd80a934n%40apereo.org?utm_medium=email&utm_source=footer>
>> .
>>
> --
> - Website: https://apereo.github.io/cas
> - Gitter Chatroom: https://gitter.im/apereo/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 on the web visit
> https://groups.google.com/a/apereo.org/d/msgid/cas-user/CA%2Bd9XAOimF2-vHL-13Uj0vs98gcxpzZPQh%2Be1r4sUBBY_hYxvg%40mail.gmail.com
> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/CA%2Bd9XAOimF2-vHL-13Uj0vs98gcxpzZPQh%2Be1r4sUBBY_hYxvg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/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 on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAEjUsAi01fJsDVKPctfj%2BjrMLhUq-wjSK4bpbY6yeBq6_e0wCw%40mail.gmail.com.

Reply via email to