cakephp-opauth icon indicating copy to clipboard operation
cakephp-opauth copied to clipboard

Issue when using the plugin with SecurityComponent enabled

Open eswoosh opened this issue 11 years ago • 2 comments

Security component is black holing my callback requests.

If i put:

if($this->action == 'opauth_complete') { $this->Security->validatePost = false; $this->Security->csrfCheck = false; }

Inside my beforeFilter in AppController.php then 'it' (opauth) works, without it my callback gets black-holed by SecurityComponent.

I thought this issue had previously been fixed, but for some reason on my app the code from app/Plugin/Opauth/Controller/OpauthController.php (lines 16,17,18) are not executing? - does that mean the IF statement on line 16 ( " if (is_object($this->Security)) { ") is not returning true?

2 questions then:

  1. Why is this broken for me?
  2. Is disabling the validation and csrfCheck really sensible?

eswoosh avatar Sep 17 '14 17:09 eswoosh

I have this issue as well. I have the security component disabled for now.

aceat64 avatar Jan 13 '15 20:01 aceat64

Same problem here

wvdongen avatar Mar 21 '15 13:03 wvdongen