Skip to content
This repository was archived by the owner on Apr 9, 2025. It is now read-only.
This repository was archived by the owner on Apr 9, 2025. It is now read-only.

Issue when using the plugin with SecurityComponent enabled #44

@eswoosh

Description

@eswoosh

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions