http status 401 - authentication failed failed to provide a cas service ticket to validate

1,033 views
Skip to first unread message

Mostafa Abd El-Naser

unread,
Dec 14, 2015, 3:36:23 AM12/14/15
to CAS Developer
Hi,

i'm using spring security and cas when cas logout my application still logged in and cas log give me this message :-

<Error Sending message to url endpoint [https://localhost:8443/users/j_spring_cas_security_check].  Error is [Connection refused]>

Regards,

Fredrik Jönsson

unread,
Dec 14, 2015, 3:47:17 AM12/14/15
to Mostafa Abd El-Naser, CAS Developer
You are not using a proper service url pointing to the service with a hostname. The error indicates the the CAS server is trying to post the single sign out request to itself, localhost, rather than to the service.

/Fredrik

-- 
Fredrik Jönsson, M.Sc. Email:  f...@kth.se
System architect                    Phone:  +46 8 790 66 03
Kungliga tekniska högskolan (KTH)  Mobile: +46 73 595 66 03
KTH/UF/ITA



--
You received this message because you are subscribed to the Google Groups "CAS Developer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-dev+u...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/cas-dev/.

Mostafa Abd El-Naser

unread,
Dec 14, 2015, 3:58:12 AM12/14/15
to CAS Developer, mostaf...@zabatak.com, f...@kth.se
Dear,

Thanks for reply 

can check my security context .xml in attachments and tell me what excatly problem?
securityContext.xml

Mostafa Abd El-Naser

unread,
Dec 14, 2015, 3:58:22 AM12/14/15
to CAS Developer
Dear,

Thanks for reply 

can check my security context .xml in attachments and tell me what excatly problem?

securityContext.xml

Mostafa Abd El-Naser

unread,
Dec 14, 2015, 3:58:38 AM12/14/15
to CAS Developer
Dear,

Thanks for reply 

can check my security context .xml in attachments and tell me what exactly problem?

بتاريخ الاثنين، 14 ديسمبر، 2015 11:36:23 ص UTC+3، كتب Mostafa Abd El-Naser:
securityContext.xml

Petr Gašparík - AMI Praha a.s.

unread,
Dec 14, 2015, 4:03:00 AM12/14/15
to cas...@apereo.org

This:

https://login.psau.edu.sa/logout?service=https://localhost:8443/users/https://localhost:8443/users/j_spring_security_logout

 

Replace „localhost“ with valid hostname of your applications.

 

 

--

s pozdravem

Petr Gašparík

--

Petr Gašparík - AMI Praha a.s.

unread,
Dec 14, 2015, 4:05:30 AM12/14/15
to cas...@apereo.org

…plus there are other places to change it.

In summary, here:

 

        <security:logout logout-success-url="https://login.psau.edu.sa/logout?service=https://localhost:8443/users/https://localhost:8443/users/j_spring_security_logout" />

            <constructor-arg

            value="https://login.psau.edu.sa/logout?service=https://localhost:8443/users" />

 

(and your post belongs to cas-user maillist, not to development of CAS)

 

--

s pozdravem

Petr Gašparík

 

From: Petr Gašparík - AMI Praha a.s. [mailto:petr.g...@ami.cz]
Sent: Monday, December 14, 2015 10:04 AM
To: 'cas...@apereo.org' <cas...@apereo.org>
Subject: RE: [cas-dev] Re: http status 401 - authentication failed failed to provide a cas service ticket to validate

 

This:

https://login.psau.edu.sa/logout?service=https://localhost:8443/users/https://localhost:8443/users/j_spring_security_logout

 

Replace „localhost“ with valid hostname of your applications.

 

 

--

s pozdravem

Petr Gašparík

 

From: cas...@apereo.org [mailto:cas...@apereo.org] On Behalf Of Mostafa Abd El-Naser
Sent: Monday, December 14, 2015 9:59 AM
To: CAS Developer <
cas...@apereo.org>
Subject: [cas-dev] Re: http status 401 - authentication failed failed to provide a cas service ticket to validate

 

Dear,

--

Mostafa Abd El-Naser

unread,
Dec 14, 2015, 4:25:39 AM12/14/15
to CAS Developer
thanks, i did that and i did post in cas user with error , can help me:

 [org.jasig.cas.util.HttpClient] - <Error Sending message to url endpoint [https://sst.psau.edu.sa/users/j_spring_cas_security_check].  Error is [Remote host closed connection during handshake]>
Reply all
Reply to author
Forward
0 new messages