Skip to content

DebugKit.ignoreAuthorization doesn't work with RequestAuthorization #738

@mmahgoub

Description

@mmahgoub
  • enhancement
  • feature-discussion (RFC)
  • bug

What you did

I've set up a Request Policy as an Authorization Service but the newly added DebugKit.ignoreAuthorization doesn't seem to override the Request Authorization.

What happened

DebugKit toolbar threw a ForbiddenException.

What you expected to happen

DebugKit should bypass Request Authorization logic

This could easily be solved by adding a rule to canAccess function in the RequestPolicy class like so:

class RequestPolicy implements RequestPolicyInterface {

       public function canAccess($identity, ServerRequest $request) {
            if ($request->getParam('plugin') === 'DebugKit') {
                 return true;
            }
        }

}

but this will render DebugKit.ignoreAuthorization useless anyway!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions