Re: phpCAS with CakePHP

2014-02-24 Thread Leandro Machado Pereira
Excuse me, but what is phpCas ?

Thanks.


2014-02-24 9:03 GMT-03:00 Stephen S :

> Github[1] and the bakery[2]?
>
> [1] http://www.github.com
> [2] http://bakery.cakephp.org
>
>
> On 21 February 2014 20:41, Taylor Thomas  wrote:
>
>> So I have a phpCAS auth component we wrote and I want to make it
>> available so people can use it. Where would be the best place I could do it?
>>
>> --
>> Like Us on FaceBook https://www.facebook.com/CakePHP
>> Find us on Twitter http://twitter.com/CakePHP
>>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "CakePHP" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to cake-php+unsubscr...@googlegroups.com.
>> To post to this group, send email to cake-php@googlegroups.com.
>> Visit this group at http://groups.google.com/group/cake-php.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
>
> --
> Kind Regards
>  Stephen Speakman
>
> --
> Like Us on FaceBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>
> ---
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to cake-php+unsubscr...@googlegroups.com.
> To post to this group, send email to cake-php@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 


http://leandrompereira.com.br

***Se você pretende redirecionar este e-mail, por favor, apague todos os
endereços que aparecem nele. Outra dica de segurança é endereçá-lo no Cco.
Desta forma você estará protegendo a mim, seus amigos e a você mesmo. Eu e
a Campanha Contra o SPAM agradecemos.Não envie correntes.***

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.


Re: phpCAS with CakePHP

2014-02-24 Thread Stephen S
Github[1] and the bakery[2]?

[1] http://www.github.com
[2] http://bakery.cakephp.org


On 21 February 2014 20:41, Taylor Thomas  wrote:

> So I have a phpCAS auth component we wrote and I want to make it available
> so people can use it. Where would be the best place I could do it?
>
> --
> Like Us on FaceBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>
> ---
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to cake-php+unsubscr...@googlegroups.com.
> To post to this group, send email to cake-php@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Kind Regards
 Stephen Speakman

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.


phpCAS with CakePHP

2014-02-24 Thread Taylor Thomas
So I have a phpCAS auth component we wrote and I want to make it available 
so people can use it. Where would be the best place I could do it?

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.


phpCAS with CakePHP

2012-10-25 Thread sso
Hi,

I am looking for help with phpCAS and CakePHP.
I followed the tutorial/instructions at: 
http://bakery.cakephp.org/articles/pietro.brignola/2010/10/12/casauth_4_cakephp_4
 to 
connect to the CAS server.

The system properly redirects to the CAS login page and once logged-in 
tries to redirect to the application.
As per instructions, I have changed the password of all users to blank via 
the application so that it adds a hash value in database for blank 
password. As you would have guessed, not everyone authenticated via CAS is 
eligible for application and different people have different roles.

The problem I am facing is that once authenticated the system redirects to 
my page where somehow it fails with an error shown below:


*Warning* (2): DOMDocument::loadXML() [domdocument.loadxml 
]: Empty string supplied as 
input [*APP/Vendor/CAS/CAS/CAS/Client.php*, line *2766*]
Code Context

DOMDocument::loadXML() - [internal], line ??
CAS_Client::validateCAS20() - APP/Vendor/CAS/CAS/CAS/Client.php, line 2766
CAS_Client::isAuthenticated() - APP/Vendor/CAS/CAS/CAS/Client.php, line 1221
CAS_Client::forceAuthentication() - APP/Vendor/CAS/CAS/CAS/Client.php, line 1080
phpCAS::forceAuthentication() - APP/Vendor/CAS/CAS/CAS.php, line 1100
CasAuthComponent::startup() - APP/Controller/Component/CasAuthComponent.php, 
line 40
ObjectCollection::trigger() - CORE/Cake/Utility/ObjectCollection.php, line 130
call_user_func - [internal], line ??
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 246
Controller::startupProcess() - CORE/Cake/Controller/Controller.php, line 671
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 183
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 161
[main] - APP/webroot/index.php, line 92

CAS Authentication failed!

You were not authenticated.

You may submit your request again by clicking here.

If the problem persists, you may contact the administrator of this 
site
.
--
phpCAS 1.3.1 using server https://changed for security purpose/ (CAS 2.0)
*phpCAS error*: *phpCAS::client(): phpCAS::client() has already been called 
(at 
/home/content/89/8244189/html/sso/app/Controller/Component/CasAuthComponent.php:36)
* in*
/home/content/89/8244189/html/sso/app/Controller/Component/CasAuthComponent.php
* on line *36*
*--*
*
*
if i click on the server link above(removed), i see a page saying that I 
was authenticated.
how do i fix so that an empty string is not supplied as input. seems like 
this happened because it went in a loop or something.

Thanks for help.
*
*

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Integrating phpCAS with cakephp

2008-10-09 Thread Stef

Note : this message is also posted to: http://www.cakephpforum.net

I want to implement the following scenario:

1) User request for information about his account
--> http://localhost/users/view/stef

2) Because this is a protected page, my php code forwards to the
http://localhost/users/login page.

3) The login action from my user_controller.php initializes CAS :



4) The phpCAS code forwards to the SSL CAS login page:
https://localhost:9443/cas/login;service=http%3A%2F%2Flocalhost%2Fusers%2Flogin

5) I fill in a valid username and password which CAS validates with
MySQL.

6) After the authentication, the php code tries to retrieve user
information (via REST) from an other server (SRV) which is configured
to use CAS for authentication.

7) The problem is that I cannot use a normal HTTP call like:
req =& new HTTP_Request("http://localhost:8080/SERVICE/user/
stef.user");
$this->response = $this->req->sendRequest();
?>


Because the server will return a 302 and forward me to the login page.
So somehow I need to provide the correct ticket (which was provided
when I logged in to CAS) to the request ?

Or maybe I should use

in step 3 ?

Does anyone have experience with integrating CAS with CakePHP and
calling an external service?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---