Registry service from CAS MANAGEMENT WEB APP to MONGODB

40 views
Skip to first unread message

Napoleon Ponaparte

unread,
Mar 13, 2020, 11:52:51 PM3/13/20
to CAS Community
Hi all,
I have confused with service registry.
I have  two methods to store service.

Method 1: Using cas-server-support-json-service

By compile "org.apereo.cas:cas-server-support-json-service-registry:6.1.3"
The CAS server will read service from directory /etc/cas/services-repo

Method 2: Using cas-server-support-mongo-service-registry

By compile "org.apereo.cas:cas-server-support-mongo-service-registry:6.1.3"
The CAS server will read service from directory /etc/cas/services-repo then load these service to MongoDB

But, I have a trouble now.
I cannot use both methods.  Exactly if I build cas with 2 methods like

compile "org.apereo.cas:cas-server-support-json-service-registry:6.1.3"
compile "org.apereo.cas:cas-server-support-mongo-service-registry:6.1.3"
------>>>>>the cas will build fail.

And the CAS Management web app seem only save new service to directory.
This is lead to I can't create new service if I want to store service to MongoDB.
Note: I want to store service to mongoDB to deploy cas in cluster.
So, Do you have any suggest to solve this problem?
Thank you.


Ray Bon

unread,
Mar 16, 2020, 12:14:15 PM3/16/20
to cas-...@apereo.org
Why do you want to have multiple service registry locations?

If you want to use MongoDB, remove json entry.

Ray
-- 
Ray Bon
Programmer Analyst
Development Services, University Systems

I respectfully acknowledge that my place of work is located within the ancestral, traditional and unceded territory of the Songhees, Esquimalt and WSÁNEĆ Nations.

Nguyen Tran Thanh Lam

unread,
Mar 16, 2020, 12:20:05 PM3/16/20
to cas-...@apereo.org
Dear Mr Ray Bon
But Web Management can only create json file and store in /etc/cas/services-repo.
And I want to store services in mongodB
It conflicted.


Vào 23:14, T.2, 16 Th3, 2020 Ray Bon <rb...@uvic.ca> đã viết:
--
- 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 cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/8b90d35d44ca242663b7d6e318dffc286764633b.camel%40uvic.ca.

Nguyen Tran Thanh Lam

unread,
Mar 16, 2020, 12:23:36 PM3/16/20
to cas-...@apereo.org
Exactly I want I can use Web Management web App create new services and store it to MongoD

Vào 23:14, T.2, 16 Th3, 2020 Ray Bon <rb...@uvic.ca> đã viết:
Why do you want to have multiple service registry locations?

--

Ray Bon

unread,
Mar 16, 2020, 12:40:16 PM3/16/20
to cas-...@apereo.org
The management app should must have the same store as cas.
You can add the mongo dependency to the management overlay, same as cas.

Ray

Richard Frovarp

unread,
Mar 17, 2020, 1:25:01 PM3/17/20
to cas-...@apereo.org
Yeah, there's something odd with the 5.3 version of the manager. Even
withe version control bits turned off, it still wants to go to the
services-repo directory. Also, with JPA, it doesn't work with the
latest server versions of 5.3 for SAML2 services. Not sure if you will
see that problem with MongoDB or not.
Reply all
Reply to author
Forward
0 new messages