Re: [cas-user] Re: CAS redirecting to multiple apps not working

2018-05-23 Thread Érico
Hello Andy

thanks a lot for your help

the app1 link is the following :
http://localhost:8080/cas/login?service=http%3A%2F%2Flocalhost%3A8080%2Fregistro-acidente%2Flogin%2Fcas

regarding login page ... yes it is  http://localhost:8080/cas then
http://localhost:8080/cas/login
I am sending the login header and parameters attached on this mail

I am also sending my /private/etc/cas/config/cas.properties

the directory privileges are the following :

ls -la /private/etc/cas
total 32
drwxrwxrwx@   7 ericomartins  wheel   224 16 Mai 10:09 .
drwxr-xr-x@ 121 root  wheel  3872 18 Mai 09:33 ..
-rw-r--r--@   1 ericomartins  wheel  8196 22 Mai 09:28 .DS_Store
drwxr-xr-x@   5 ericomartins  wheel   160 23 Abr 10:41 config
drwxrwxrwx@   5 ericomartins  wheel   160 16 Mai 09:34 config-old
drwxrwxrwx@   6 ericomartins  wheel   192 22 Mai 10:40 logs
-rwxr-xr-x1 ericomartins  wheel  1951 15 Mai 09:41 thekeystore

CAS app has a application.properties file with the following :

server.context-path=/cas

server.port=8443

#server.ssl.key-store=file:/etc/cas/thekeystore

server.ssl.key-store=file:/private/etc/cas/thekeystore

server.ssl.key-store-password=changeit

server.ssl.key-password=changeit

Best Regards
Érico




2018-05-23 11:05 GMT-03:00 Andy Ng <long...@gmail.com>:

> Hi Érico,
>
> Likely your colleague have done some customization on CAS. Default CAS
> only have a username, password and some other things, and login success
> won't immediately have redirection links
>
> so, I think a little bit more information will be needed, in order to
> start solving your problem:
> - What are the redirection links? You can blur out the server detail, but
> something "app1 redirection links is http://localhost:8080/cas?
> service=http://www.example.com/app1; will tell us more about your problem
> - You said sends me to login page, you mean send you back to "
> http://localhost:8080/cas; correct? If so, any parameter attached?
>
> Another thing, CAS don't work / don't work well with http, try setup to
> https. I don't use JBoss myself so I won't be able to help on that.
>
> Cheers!
> - Andy
>
>
>
>
> On Wednesday, 23 May 2018 21:14:30 UTC+8, Érico Teixeira wrote:
>>
>> Hello
>>
>> I've started woking on a set of apps developed by another programmer
>>
>> I login through http://localhost:8080/cas that contains a menu with the
>> redirection for the other apps
>>
>> This redirection is not working ... I've deployed other 2 apps along with
>> CAS(5.1) and all are successfully deployed :
>>
>> CAS and app1 in jboss EAP 7 running in 8080
>>
>> app2 through spring boot running in 8090
>>
>> Both app1 and app2 behave the same way ... I click on their menus and the
>> redirection sends me to login page instead of redirecting me to app1 or
>> app2
>>
>> There are no erros on jboss logs
>>
>> There are no erros on network tab in firefox or chrome
>>
>> I don't know what other info I could past here to simulate the error
>>
>> Please, I am stuck on this for a few days and don't know what else to
>> investigate
>>
>> Thks
>> Érico
>>
> --
> - 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/8f1bcce1-f1b9-4cb6-a68c-
> 6bde820867e2%40apereo.org
> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/8f1bcce1-f1b9-4cb6-a68c-6bde820867e2%40apereo.org?utm_medium=email_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 cas-user+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAORQCTLkJy3U-mp1tadOg0wYhgvkMePp9ib9foj37DcPhmbS0Q%40mail.gmail.com.

Response headers (1,066 KB) 
Cache-Control   
no-store
Connection  
keep-alive
Content-Language
pt-BR
Content-Type
text/html;charset=UTF-8
Date
Wed, 23 May 2018 14:10:43 GMT
Expires 
Pragma  
Server  
JBoss-EAP/7
Set-Cookie  
TGC=eyJhbGciOiJIUzUxMiJ9.WlhsS… path=/cas/; secure; HttpO

[cas-user] CAS redirecting to multiple apps not working

2018-05-23 Thread Érico
Hello

I've started woking on a set of apps developed by another programmer

I login through http://localhost:8080/cas that contains a menu with the
redirection for the other apps

This redirection is not working ... I've deployed other 2 apps along with
CAS(5.1) and all are successfully deployed :

CAS and app1 in jboss EAP 7 running in 8080

app2 through spring boot running in 8090

Both app1 and app2 behave the same way ... I click on their menus and the
redirection sends me to login page instead of redirecting me to app1 or
app2

There are no erros on jboss logs

There are no erros on network tab in firefox or chrome

I don't know what other info I could past here to simulate the error

Please, I am stuck on this for a few days and don't know what else to
investigate

Thks
Érico

-- 
- 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/CAORQCTJpnRkifZQc8JrOTBR2UHL-cM9bbkzr0ZGhrEXY6URafQ%40mail.gmail.com.


Re: [cas-user] cas-overlay-template sutck with warnings

2018-05-16 Thread Érico
Thks for David Curry's site. I will follow it

It is ok for me to use 8443 . I tried before posting to the group :

https://localhost:8443/cas

but I get the following error :

SSL_ERROR_NO_CYPHER_OVERLAP

2018-05-16 11:57 GMT-03:00 Matthew Uribe <matthew.ur...@aims.edu>:

> Érico,
>
> Based on this https://github.com/apereo/cas-overlay-template I would say
> that 8080 and 8443 should both be open while the overlay embedded Tomcat is
> running. However, it's also my understanding that CAS requires SSL, so the
> fact that you have no process listening on port 8080, but java is listening
> on 8443 is not too surprising to me. Someone with more experience using the
> embedded Tomcat can correct me if I'm wrong. Why don't you want to use
> 8443? If SSL cert is the issue, a self-signed cert should be suitable for
> test/dev purposes.
>
> When I started in CAS 5, not long ago, I was on a similar track. The guide
> that David Curry put together is super helpful. Have you taken the time to
> look at it?
> https://dacurry-tns.github.io/deploying-apereo-cas/
> introduction_overview.html
>
>
> [image: Aims Community College Top Work Places 2018 - The Denver Post]
> Matt Uribe
> Programmer Analyst II
> Information Technology
> Aims Community College
> 970.339.6375
> matthew.ur...@aims.edu <brad.yo...@aims.edu>
> 5401 W. 20th Street
> <https://maps.google.com/?q=5401+W.+20th+Street+Greeley,+CO,+80634=gmail=g>
> Greeley, CO, 80634
> <https://maps.google.com/?q=5401+W.+20th+Street+Greeley,+CO,+80634=gmail=g>
> www.aims.edu
> <https://www.aims.edu/about/social-media/>
>
>
> *IT staff will never ask you for your username and password. *
>
>
> *Always decline to provide the information and report such attempts to the 
> Help Desk (x6380).*
>
>
> On Wed, May 16, 2018 at 8:28 AM, Érico Teixeira <erico...@gmail.com>
> wrote:
>
>> Hello Matt
>>
>> Thks for the reply
>>
>> I try to access through browser but nothing happens :
>> http://localhost:8080/cas
>>
>> My /etc/cas/config/cas.properties content is the following :
>>
>> #cas.server.name: https://cas.example.org:8443
>> #cas.server.prefix: https://cas.example.org:8443/cas
>>
>> cas.server.name: http://localhost:8080
>> cas.server.prefix: http://localhost:8080/cas
>>
>> cas.server.http.port=8080
>>
>> cas.adminPagesSecurity.ip=127\.0\.0\.1
>>
>> cas.authn.accept.users=
>>
>> logging.config: file:/etc/cas/config/log4j2.xml
>> # cas.serviceRegistry.config.location: classpath:/services
>>
>> is that ok ?
>>
>>
>> shouldn't 8080 port been open ?
>>
>> cas-overlay-template-master ericomartins$ lsof -i :8080
>> ---  no result here 
>>
>> cas-overlay-template-master ericomartins$ lsof -i :8443
>> COMMAND   PID USER   FD   TYPE DEVICE SIZE/OFF NODE
>> NAME
>> java26098 ericomartins   32u  IPv6 0xff2c21fe03059105  0t0  TCP
>> *:pcsync-https (LISTEN)
>>
>>
>> Thks
>>
>>
>> Em quarta-feira, 16 de maio de 2018 11:05:15 UTC-3, Matthew Uribe
>> escreveu:
>>>
>>> Have you tried going to the CAS webpage? It should load.
>>>
>>> The warnings are just letting you know that since you didn't define the
>>> keys in cas.properties, it's created them for you.
>>>
>>> If I recall from my experience with ./build.sh run, it will sit on the
>>> console because the process is still running. That's normal in the console
>>> while the process continues to run.
>>>
>>> [image: Aims Community College Top Work Places 2018 - The Denver Post]
>>> Matt Uribe
>>> Programmer Analyst II
>>> Information Technology
>>> Aims Community College
>>> 970.339.6375
>>> matthe...@aims.edu
>>> 5401 W. 20th Street
>>> <https://urldefense.proofpoint.com/v2/url?u=https-3A__maps.google.com_-3Fq-3D5401-2BW.-2B20th-2BStreet-2BGreeley-2C-2BCO-2C-2B80634-26entry-3Dgmail-26source-3Dg=DwMFaQ=spdyCQlbcMzVK9-MvWb-WQ=auWoa16BPqAWqsx-0-lnCDVAVu-ZWi_vyIfKhfMtR_E=74ae6O5jGE8dwl-WxhMxupvxYdgSeIbxq8bMQ2kSDmY=KhpyEj51MiP-FxT85-hndX37D9BZT3kffQAjB6QYcWc=>
>>> Greeley, CO, 80634
>>> <https://urldefense.proofpoint.com/v2/url?u=https-3A__maps.google.com_-3Fq-3D5401-2BW.-2B20th-2BStreet-2BGreeley-2C-2BCO-2C-2B80634-26entry-3Dgmail-26source-3Dg=DwMFaQ=spdyCQlbcMzVK9-MvWb-WQ=auWoa16BPqAWqsx-0-lnCDVAVu-ZWi_vyIfKhfMtR_E=74ae6O5jGE8dwl-WxhMxupvxYdgSeIbxq8bMQ2kSDmY=KhpyEj51MiP-FxT85-hndX37D9BZT3kffQAjB6QYcWc=>
>>> www.aims.edu
>>> <https://www.aims.edu/ab

Re: [cas-user] cas-overlay-template sutck with warnings

2018-05-16 Thread Érico Teixeira
Hello Matt

Thks for the reply 

I try to access through browser but nothing happens :
http://localhost:8080/cas

My /etc/cas/config/cas.properties content is the following : 

#cas.server.name: https://cas.example.org:8443
#cas.server.prefix: https://cas.example.org:8443/cas

cas.server.name: http://localhost:8080
cas.server.prefix: http://localhost:8080/cas

cas.server.http.port=8080

cas.adminPagesSecurity.ip=127\.0\.0\.1

cas.authn.accept.users=

logging.config: file:/etc/cas/config/log4j2.xml
# cas.serviceRegistry.config.location: classpath:/services

is that ok ? 


shouldn't 8080 port been open ? 

cas-overlay-template-master ericomartins$ lsof -i :8080
---  no result here  

cas-overlay-template-master ericomartins$ lsof -i :8443
COMMAND   PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
java26098 ericomartins   32u  IPv6 0xff2c21fe03059105  0t0  TCP 
*:pcsync-https (LISTEN)


Thks


Em quarta-feira, 16 de maio de 2018 11:05:15 UTC-3, Matthew Uribe escreveu:
>
> Have you tried going to the CAS webpage? It should load.
>
> The warnings are just letting you know that since you didn't define the 
> keys in cas.properties, it's created them for you.
>
> If I recall from my experience with ./build.sh run, it will sit on the 
> console because the process is still running. That's normal in the console 
> while the process continues to run.
>
> [image: Aims Community College Top Work Places 2018 - The Denver Post] 
> Matt Uribe
> Programmer Analyst II
> Information Technology
> Aims Community College
> 970.339.6375
> matthe...@aims.edu 
> 5401 W. 20th Street 
> <https://maps.google.com/?q=5401+W.+20th+Street+Greeley,+CO,+80634=gmail=g>
> Greeley, CO, 80634 
> <https://maps.google.com/?q=5401+W.+20th+Street+Greeley,+CO,+80634=gmail=g>
> www.aims.edu
> <https://www.aims.edu/about/social-media/>
>
>
> *IT staff will never ask you for your username and password. *
>
>
> *Always decline to provide the information and report such attempts to the 
> Help Desk (x6380).*
>
>
> On Wed, May 16, 2018 at 7:43 AM, Érico Teixeira <eric...@gmail.com 
> > wrote:
>
>> Hello
>>
>> I've downloaded cas-overlay-template from 
>> https://github.com/apereo/cas-gradle-overlay-template
>>
>> Then copied the project config folder to /etc/cas grating reading perms 
>> to its content 
>>
>> I'm using macOS High Sierra
>>
>> Trying run cas-overlay-template through:
>> /build.sh run;
>>
>> It builds the package but when starting it shows some warnings like :
>>
>> WARN [org.apereo.cas.config.CasCoreTicketsConfiguration] - > memory is used as the persistence storage for retrieving and managing 
>> tickets. Tickets that are issued during runtime will be LOST upon container 
>> restarts. This MAY impact SSO functionality.>
>> 2018-05-16 10:31:01,136 WARN 
>> [org.apereo.cas.config.CasCoreServicesConfiguration] - > used as the persistence storage for retrieving and persisting service 
>> definitions. Changes that are made to service definitions during runtime 
>> WILL be LOST upon container restarts. Ideally for production, you need to 
>> choose a storage option (JDBC, etc) to store and track service definitions.>
>> 2018-05-16 10:31:02,386 WARN 
>> [org.apereo.cas.util.cipher.BaseStringCipherExecutor] - > encryption is not defined for [Ticket-granting Cookie]; CAS will attempt to 
>> auto-generate the encryption key>
>> 2018-05-16 10:31:02,423 WARN 
>> [org.apereo.cas.util.cipher.BaseStringCipherExecutor] - > encryption key [ddpmDx_7JI_BNeK365hI-EVbHwatnX8KhuTYLjQDp10] of size [256] 
>> for [Ticket-granting Cookie]. The generated key MUST be added to CAS 
>> settings under setting [cas.tgc.crypto.encryption.key].>
>> 2018-05-16 10:31:02,438 WARN 
>> [org.apereo.cas.util.cipher.BaseStringCipherExecutor] - > signing is not defined for [Ticket-granting Cookie]. CAS will attempt to 
>> auto-generate the signing key>
>> 2018-05-16 10:31:02,447 WARN 
>> [org.apereo.cas.util.cipher.BaseStringCipherExecutor] - > key 
>> [AYJxpl7vcsvagtFtWZ9RG6DUJ7k5xjy-5Bzt9wUsCuUeawEtP0VHJB3XlP7YF7yOPDAmAxtLALqPN_K7p3g86w]
>>  
>> of size [512] for [Ticket-granting Cookie]. The generated key MUST be added 
>> to CAS settings under setting [cas.tgc.crypto.signing.key].>
>> 2018-05-16 10:31:03,421 WARN 
>> [org.apereo.cas.util.cipher.BaseBinaryCipherExecutor] - > signing is not defined under [cas.webflow.crypto.signing.key]. CAS will 
>> attempt to auto-generate the signing key>
>> 2018-05-16 10:31:03,424 WARN 
>> [org.apereo.cas.util.cipher.BaseBinaryCipherExecutor] - > key 
>> [1Ys3L97Olngrj6v

[cas-user] cas-overlay-template sutck with warnings

2018-05-16 Thread Érico Teixeira
Hello

I've downloaded cas-overlay-template from 
https://github.com/apereo/cas-gradle-overlay-template

Then copied the project config folder to /etc/cas grating reading perms to 
its content 

I'm using macOS High Sierra

Trying run cas-overlay-template through:
/build.sh run;

It builds the package but when starting it shows some warnings like :

WARN [org.apereo.cas.config.CasCoreTicketsConfiguration] - 
2018-05-16 10:31:01,136 WARN 
[org.apereo.cas.config.CasCoreServicesConfiguration] - 
2018-05-16 10:31:02,386 WARN 
[org.apereo.cas.util.cipher.BaseStringCipherExecutor] - 
2018-05-16 10:31:02,423 WARN 
[org.apereo.cas.util.cipher.BaseStringCipherExecutor] - 
2018-05-16 10:31:02,438 WARN 
[org.apereo.cas.util.cipher.BaseStringCipherExecutor] - 
2018-05-16 10:31:02,447 WARN 
[org.apereo.cas.util.cipher.BaseStringCipherExecutor] - 
2018-05-16 10:31:03,421 WARN 
[org.apereo.cas.util.cipher.BaseBinaryCipherExecutor] - 
2018-05-16 10:31:03,424 WARN 
[org.apereo.cas.util.cipher.BaseBinaryCipherExecutor] - 
2018-05-16 10:31:03,424 WARN 
[org.apereo.cas.util.cipher.BaseBinaryCipherExecutor] - 
2018-05-16 10:31:03,443 WARN 
[org.apereo.cas.util.cipher.BaseBinaryCipherExecutor] - 

and gets stuck on the console for ever

the are no errors on CAS log files 

Please can someone help me out on this? 

-- 
- 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/d8bb88b5-8c58-4590-aacc-6e207e08aa9d%40apereo.org.