[cas-user] CAS Cookie Comment

2020-03-13 Thread Jack
How to change CAS Cookie Comment from "CAS Cookie" to "MyEDU SSO Cookie" ?

Name can be changed, but the question is about the comment.

Thanks!

-- 
- 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+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/CACNfiMJBqOv9LDCyqSui5Lx%3DaRb3NGEbTwjgFU_q09is-wORWA%40mail.gmail.com.


[cas-user] Registry service from CAS MANAGEMENT WEB APP to MONGODB

2020-03-13 Thread Napoleon Ponaparte
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.


-- 
- 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+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/d39c01e9-f68e-41c6-a096-31bd9729a1b4%40apereo.org.


Re: [cas-user] Service Registry - Store in MySQL database

2020-03-13 Thread Michele Melluso
Hi Bob,

I had a similar regression from 6.0 to 6.1. The problem is that 
EmbeddedResourceBasedServiceRegistry is registered in the registries chain.

So, when the ServiceRegistryInitializer.java checks at row 66 if the json 
service exists already, it is found from 
EmbeddedResourceBasedServiceRegistry and then it is not added to 
JpaTicketRegistry.

I solved somehow by avoiding the 
"embeddedJsonServiceRegistryExecutionPlanConfigurer" bean, just commenting 
it away in CasServiceRegistryInitializationConfiguration.java

// @Bean
// @ConditionalOnMissingBean(name = 
"embeddedJsonServiceRegistryExecutionPlanConfigurer")
// public ServiceRegistryExecutionPlanConfigurer 
embeddedJsonServiceRegistryExecutionPlanConfigurer() {
// return plan -> 
plan.registerServiceRegistry(embeddedJsonServiceRegistry());
// }

I don't know if there will be any collateral problems, by the way now json 
services are correctly copied on JpaTicketRegistry.
Wouldn't know how to fix it in a clean way as to make a pr.

Hope it helps
Regards
Michele


On Thursday, January 30, 2020 at 1:00:47 PM UTC+1, Bob wrote:
>
> Thanks Misagh and Ray,
>
> I cloned the cas-overlay-template in a new location and used the settings 
> Misagh suggested but I still have the same problem that my casdb still has 
> an empty regex_registered_service table.
> Here's what I'm using:
>
> Here's what I'm using:
>
> CAS Version: 6.1.0
> CAS Branch: 6.1.x
> CAS Commit Id: c92590730249df0cf26fd1b4bebd8aea8447b256
> CAS Build Date/Time: 2019-10-28T02:43:18Z
> Spring Boot Version: 2.2.0.RELEASE
> Spring Version: 5.2.0.RELEASE
> Java Home: C:\Programs\Java\amazon-corretto\jdk11.0.3_7
> Java Vendor: Amazon.com Inc.
> Java Version: 11.0.3
>
>
> My dependencies in build.gradle:
>
> dependencies {
> // Other CAS dependencies/modules may be listed here...
> compile 
> "org.apereo.cas:cas-server-support-ldap:${project.'cas.version'}"
> compile 
> "org.apereo.cas:cas-server-support-jdbc-drivers:${project.'cas.version'}"
> compile 
> "org.apereo.cas:cas-server-support-jpa-service-registry:${project.'cas.version'}"
> }
>
>
> My minimum cas.propertie (I omitted the LDAP part since that's working 
> fine):
>
> cas.server.name: https://localhost:8443
> cas.server.prefix: ${cas.server.name}/cas
>
> logging.config: file:/etc/cas/config/log4j2.xml
>
> server.ssl.key-store=file:/etc/cas/keystore.jks
> server.ssl.key-store-password=
> server.ssl.key-password=xxx
>
> cas.serviceRegistry.initFromJson=true
> cas.serviceRegistry.json.location=file:/etc/cas/config/services
>
> cas.serviceRegistry.jpa.user=xx
> cas.serviceRegistry.jpa.password=xxx
> cas.serviceRegistry.jpa.driverClass=com.mysql.cj.jdbc.Driver
>
> cas.serviceRegistry.jpa.url=jdbc:mysql://localhost:3306/casdb?allowPublicKeyRetrieval=true=UTF-8=FALSE
> cas.serviceRegistry.jpa.dialect=org.hibernate.dialect.MySQL57InnoDBDialect
> cas.serviceRegistry.jpa.ddlAuto=update
>
>
> When I run CAS 6.1.0 I see: 
>
> [org.apereo.cas.services.AbstractServicesManager] -  from [EmbeddedResourceBasedServiceRegistry,JpaServiceRegistry].>
>
>
> I can then use CAS to login to my application, but it does not insert any 
> Service Registry into the MySQL casdb.
> Do you see anything wrong in my setup?
> Thanks,
>
> Bob
>
> On Wednesday, January 29, 2020 at 11:21:24 AM UTC+1, Misagh Moayyed wrote:
>>
>>
>> Something along the following lines should work:
>>
>> cas.serviceRegistry.initFromJson=true
>> cas.serviceRegistry.json.location=file:/etc/cas/config/services
>>
>> - Then, make sure your JSON files are in the above noted directory.
>> - Then, make sure your overlay contains a reference to the JPA service 
>> registry
>>
>> (You do not need to include the JSON service registry, IIRC, in the 
>> overlay)
>>
>> Then, on startup, CAS will import your JSON files from that directory 
>> over to the real (JPA) service registry.
>>
>> YMMV.
>>
>>
>> On Wednesday, January 29, 2020 at 12:56:11 AM UTC+4, rbon wrote:
>>>
>>> Bob,
>>>
>>> We are using the 5.1.5 version of cas management. You only need to 
>>> upgrade it if you want newer features, etc.
>>> I also have grumblings about the 6.x version. I put off upgrading cas 
>>> management until it settles. 
>>>
>>> Ray
>>>
>>> On Tue, 2020-01-28 at 12:34 -0800, Bob wrote:
>>>
>>> Hi Ray,
>>>
>>> No, I'm currently just using the cas overlay (6.1.x).
>>> I did try to get cas management working but had some issue with a 
>>> pre-defined service registry in some kind of git repo.
>>> Whenever I tried to enter a service via cas management, there was no 
>>> option to save it to my database. All it ever did was show this 1 entry 
>>> from a git repo.
>>> SInce I did get it working (reading my json file and store it in MySQL 
>>> database) without cas management for version 5.3.9, I assumed it would work 
>>> for version 6 as well.
>>> Do you think cas management is the only way to get it stored in the 
>>> database? I might have another look at it then.
>>> Thanks,

[cas-user] Re: How to configure simple MFA to send the code using the rest method

2020-03-13 Thread Emilian Mitocariu
For my particular case I was able to make CAS to send requests to the 
Signal service, but not one that the Signal service knew what to do with 
it. So I had to create a simple webserver (as a proxy/translator) in the 
middle of CAS and the Signal service. Note: this is the type of request 
sent by the rest method 
(https://apereo.github.io/cas/6.1.x/notifications/SMS-Messaging-Configuration.html#rest),
 
so make sure your provider expects that kind of request.

I've also managed to send SMS messages with nexmo, if you're interested I 
could show you the config for that.

-- 
- 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+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/780d754a-dcc5-4062-9d3c-79a3ebdb3187%40apereo.org.