[cas-user] Migrating Services from 5.2.x to 6.5.x

2022-06-03 Thread Trevor Fong
Hi Everyone,

Along the same lines as 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/75ef5b42-d3b7-366b-8b5b-c784e578b5a2%40ndsu.edu?utm_medium=email&utm_source=footer
 
- I'm trying to migrate services from a 5.2.x install with a JPA service 
registry to a 6.5.x JPA service registry.  The database schemas are totally 
different between the two.  The 6.5.x registered_services table is very 
straight forward, but the 5.2.x schema consists of several relational 
tables with some kind of encoding on some of the columns.  

I've looked at the blog post from Fawnoos but it seems to be for 5.3 - 
would this be applicable to 5.2?  (
https://fawnoos.com/2021/01/19/cas53-service-registry-migration-to-cas63/)

Would anyone have any suggestions for migrating services from 5.2.x to 
6.5.x?  
Does anyone know what kind of encoding is applied to the data in 5.2.x?  
It's not Base64.
Perhaps some way to decode and collapse the 5.2.x relational data to 6.5.x 
format?

Thanks a lot,
Trev

-- 
- 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/dfe7833f-b503-4be5-9bf5-f7526fe2d18an%40apereo.org.


Re: [cas-user] Custom WebFlow example

2022-06-03 Thread Ray Bon
I just learned there is built in mechanism for custom properties, see 
https://fawnoos.com/2018/05/04/cas-custom-properties/
One less class to create ;-)

Ray


On Thu, 2022-06-02 at 15:57 +, Ray Bon wrote:
Notice: This message was sent from outside the University of Victoria email 
system but is claiming to be from UVic. Please be cautious with links, 
attachments, and sensitive information.

Notice: This message was sent from outside the University of Victoria email 
system. Please be cautious with links and sensitive information.

There are three main classes that you create (I just happen to be looking at 
login interrupt right now):
action: 
https://github.com/apereo/cas/blob/master/support/cas-server-support-interrupt-webflow/src/main/java/org/apereo/cas/interrupt/webflow/actions/InquireInterruptAction.java
configuration:https://github.com/apereo/cas/blob/master/support/cas-server-support-interrupt-webflow/src/main/java/org/apereo/cas/config/CasInterruptWebflowConfiguration.java
configurer: 
https://github.com/apereo/cas/blob/master/support/cas-server-support-interrupt-webflow/src/main/java/org/apereo/cas/interrupt/webflow/InterruptWebflowConfigurer.java

The constants used are in 
https://github.com/apereo/cas/blob/master/api/cas-server-core-api-webflow/src/main/java/org/apereo/cas/web/flow/CasWebflowConstants.java

If you have  properties, create a class and reference it in configuration.

Here is  a gist to print the web flow.  Ignore insertIntoFlow, I  created it 
before cas had support methods (or I  did not  know  they  existed).
https://gist.github.com/rbonatuvic/d3ef9e8dc0c5a78870a8520bc2ab2b74

Ray

On Thu, 2022-06-02 at 11:09 +0200, spfma.t...@e.mail.fr wrote:
Notice: This message was sent from outside the University of Victoria email 
system. Please be cautious with links and sensitive information.

Hi,

Thanks for your answer.

I have already read those resources (actually 
https://apereo.github.io/cas/6.4.x/webflow/Webflow-Customization-Extensions.html
 as I am working on a 6.4 instance), but they haven't helped me so far.

Most of the code is "skeleton" wihtout any implementation. Or there are only 
parts about different elements but no complete working example.
I am not even able to find where and how the default webflow is implemented (I 
guess it is sourcecode now, and no more xml webflow definition file).

As a reference, I have a working "login-webflow.xml" coming from the running 
CAS 3.5.3 instance we are currently using, which implements the required 
webflow but I definitely don't undestrand how to "translate" this into Java 
code.
I have also enabled the "springWebflow" endpoint, it gives plenty of 
informations, but how to use them ?

Regards


Le 02-Jun-2022 03:25:13 +0200, r...@uvic.ca a écrit:
See https://fawnoos.com/tags/?t=Spring+Webflow
and 
https://apereo.github.io/cas/6.5.x/webflow/Webflow-Customization-Extensions.html

Ray

On Wed, 2022-06-01 at 22:23 +0200, spfma.t...@e.mail.fr wrote:
Notice: This message was sent from outside the University of Victoria email 
system. Please be cautious with links and sensitive information.

Hi,

Can someone show me some custom WebFlow source code ? I don't really know where 
to start.

What I am trying to achieve : mixed mode SPNEGO works fine, but I had some 
complaints because of the popup appearing with some browsers when CAS is 
accessed from the outside world.
It's fine withing our corporate networks, because most of the clients belong to 
an AD domain.

So I would like to let the SPNEGO occur on those selected networks, and 
immediately send the login form to visitors.

Regards


FreeMail powered by mail.fr



--

Ray Bon
Programmer Analyst
Development Services, University Systems
2507218831 | CLE 019 | r...@uvic.ca

I acknowledge and respect the lək̓ʷəŋən peoples on whose traditional territory 
the university stands, and the Songhees, Esquimalt and WSÁNEĆ peoples whose 
historical relationships with the land continue to this day.


FreeMail powered by mail.fr

--

Ray Bon
Programmer Analyst
Development Services, University Systems
2507218831 | CLE 019 | r...@uvic.ca

I acknowledge and respect the lək̓ʷəŋən peoples on whose traditional territory 
the university stands, and the Songhees, Esquimalt and WSÁNEĆ peoples whose 
historical relationships with the land continue to this day.

--

Ray Bon
Programmer Analyst
Development Services, University Systems
2507218831 | CLE 019 | r...@uvic.ca

I acknowledge and respect the lək̓ʷəŋən peoples on whose traditional territory 
the university stands, and the Songhees, Esquimalt and WSÁNEĆ peoples whose 
historical relationships with the land continue to this day.

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.

Re: [cas-user] spring.profiles.active not working in 6.4.

2022-06-03 Thread Ray Bon
Francois,

The spring properties must be loaded before cas.properties. Place it in one of 
the spring startup files, like application.yml or as a command line parameter.

Ray


On Fri, 2022-06-03 at 12:43 +0200, fjannin4 wrote:

Notice: This message was sent from outside the University of Victoria email 
system. Please be cautious with links and sensitive information.



Greetings,


I have configured, accordingly with  online doc



https://apereo.github.io/cas/6.4.x/configuration/Configuration-Server-Management.html

,

this property in cas.properties :


spring.profiles.active=attributes,oidc,tickets,ldap,consent


When CAS is starting though, logs says :


2022-06-03 10:43:37,539 INFO

[org.apereo.cas.configuration.DefaultCasConfigurationPropertiesSourceLocator]

- 

2022-06-03 10:43:37,574 INFO

[org.apereo.cas.configuration.loader.YamlConfigurationPropertiesLoader]

- 

2022-06-03 10:43:37,747 INFO

[org.apereo.cas.web.CasWebApplicationServletInitializer] - 


It is enough confusing, which way it is intended to work ? What I am

missing ?


Thanks a lot for help !


Best regards


Francois Jannin - Toulouse INP


--

- 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/09e7c86b-555d-050a-5a72-75a83430dd25%40gmail.com

.

--

Ray Bon
Programmer Analyst
Development Services, University Systems
2507218831 | CLE 019 | r...@uvic.ca

I acknowledge and respect the lək̓ʷəŋən peoples on whose traditional territory 
the university stands, and the Songhees, Esquimalt and WSÁNEĆ peoples whose 
historical relationships with the land continue to this day.

-- 
- 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/cee197b02c537a0868482b5205c35590aeca4eb6.camel%40uvic.ca.


Re: [cas-user] Custom WebFlow example

2022-06-03 Thread spfma . tech
Hi, Thanks a lot for these elements, I would never have found them by myself ! 
I was only able to reach this page, totally mistakenly : 
https://programmer.group/cas-single-sign-on-customize-the-login-interface-and-form-information.html
 So now I will need to study this deeply, seems there is a lot of work ... 
Regards 
Le 02-Jun-2022 17:57:34 +0200, r...@uvic.ca a crit: 
 There are three main classes that you create (I just happen to be looking at 
login interrupt right now): action: 
https://github.com/apereo/cas/blob/master/support/cas-server-support-interrupt-webflow/src/main/java/org/apereo/cas/interrupt/webflow/actions/InquireInterruptAction.java
 
configuration:https://github.com/apereo/cas/blob/master/support/cas-server-support-interrupt-webflow/src/main/java/org/apereo/cas/config/CasInterruptWebflowConfiguration.java
 configurer: 
https://github.com/apereo/cas/blob/master/support/cas-server-support-interrupt-webflow/src/main/java/org/apereo/cas/interrupt/webflow/InterruptWebflowConfigurer.java
   The constants used are in 
https://github.com/apereo/cas/blob/master/api/cas-server-core-api-webflow/src/main/java/org/apereo/cas/web/flow/CasWebflowConstants.java
   If you have properties, create a class and reference it in configuration.   
Here is a gist to print the web flow. Ignore insertIntoFlow, I created it 
before cas had support methods (or I did not know they existed). 
https://gist.github.com/rbonatuvic/d3ef9e8dc0c5a78870a8520bc2ab2b74   Ray   On 
Thu, 2022-06-02 at 11:09 +0200, spfma.t...@e.mail.fr wrote: 
 Notice: This message was sent from outside the University of Victoria email 
system. Please be cautious with links and sensitive information. 
  Hi,   Thanks for your answer.   I have already read those resources (actually 
 
https://apereo.github.io/cas/6.4.x/webflow/Webflow-Customization-Extensions.html
 as I am working on a 6.4 instance), but they haven't helped me so far.   Most 
of the code is "skeleton" wihtout any implementation. Or there are only parts 
about different elements but no complete working example. I am not even able to 
find where and how the default webflow is implemented (I guess it is sourcecode 
now, and no more xml webflow definition file).   As a reference, I have a 
working "login-webflow.xml" coming from the running CAS 3.5.3 instance we are 
currently using, which implements the required webflow but I definitely don't 
undestrand how to "translate" this into Java code. I have also enabled the 
"springWebflow" endpoint, it gives plenty of informations, but how to use them 
?   Regards 

Le 02-Jun-2022 03:25:13 +0200, r...@uvic.ca a crit: 
 See https://fawnoos.com/tags/?t=Spring+Webflow and 
https://apereo.github.io/cas/6.5.x/webflow/Webflow-Customization-Extensions.html
   Ray   On Wed, 2022-06-01 at 22:23 +0200, spfma.t...@e.mail.fr wrote: 
 Notice: This message was sent from outside the University of Victoria email 
system. Please be cautious with links and sensitive information. 
  Hi,   Can someone show me some custom WebFlow source code ? I don't really 
know where to start.   What I am trying to achieve : mixed mode SPNEGO works 
fine, but I had some complaints because of the popup appearing with some 
browsers when CAS is accessed from the outside world. It's fine withing our 
corporate networks, because most of the clients belong to an AD domain.So I 
would like to let the SPNEGO occur on those selected networks, and immediately 
send the login form to visitors.   Regards 

-
FreeMail powered by  mail.fr 

--  Ray Bon Programmer Analyst Development Services, University Systems 
2507218831 | CLE 019 |  r...@uvic.ca   I acknowledge and respect the lək̓ʷəŋən 
peoples on whose traditional territory the university stands, and the Songhees, 
Esquimalt and WSNEĆ peoples whose historical relationships with the land 
continue to this day.   

-
FreeMail powered by mail.fr 

--  Ray Bon Programmer Analyst Development Services, University Systems 
2507218831 | CLE 019 | r...@uvic.ca   I acknowledge and respect the lək̓ʷəŋən 
peoples on whose traditional territory the university stands, and the Songhees, 
Esquimalt and WSNEĆ peoples whose historical relationships with the land 
continue to this day.   

-
FreeMail powered by mail.fr

-- 
- 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.go

[cas-user] spring.profiles.active not working in 6.4.

2022-06-03 Thread fjannin4

Greetings,

I have configured, accordingly with  online doc 
https://apereo.github.io/cas/6.4.x/configuration/Configuration-Server-Management.html, 
this property in cas.properties :


spring.profiles.active=attributes,oidc,tickets,ldap,consent

When CAS is starting though, logs says :

2022-06-03 10:43:37,539 INFO 
[org.apereo.cas.configuration.DefaultCasConfigurationPropertiesSourceLocator] 
- [/etc/cas/config/application.yml], file 
[/etc/cas/config/cas.properties]]] under profile(s) [[standalone]]>
2022-06-03 10:43:37,574 INFO 
[org.apereo.cas.configuration.loader.YamlConfigurationPropertiesLoader] 
- [/etc/cas/config/application.yml]]>
2022-06-03 10:43:37,747 INFO 
[org.apereo.cas.web.CasWebApplicationServletInitializer] - following profiles are active: standalone>


It is enough confusing, which way it is intended to work ? What I am 
missing ?


Thanks a lot for help !

Best regards

Francois Jannin - Toulouse INP

--
- 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/09e7c86b-555d-050a-5a72-75a83430dd25%40gmail.com.