Sitegeist.Monocle icon indicating copy to clipboard operation
Sitegeist.Monocle copied to clipboard

Backend module authentication failure

Open DrNik opened this issue 7 years ago • 7 comments

Hi, when I click on the "Open Styleguide in a new Window" button I receive the following authentication error:

Might be missing or wrong credentials or no authentication provider matched.
Evaluated following 2 privilege target(s):
"Neos.Neos:AllControllerActions": ABSTAIN
"Sitegeist.Monocle:Styleguide.Module": ABSTAIN
(0 granted, 0 denied, 2 abstained)

I'm logged in in Neos backend with an Administrator user but even checking every activatable role the result is still the same.

I'm on a Neos 3.3 with the new React UI and Monocle version is 4.0.1.

I did not see any particular instruction in the documentation but probably I'm missing something here.

Thanks, Nicola

DrNik avatar Jan 22 '18 08:01 DrNik

Hey @DrNik, I had the same problem. Logging out and back in helped me. Michael

gerdemann avatar Apr 30 '18 05:04 gerdemann

Same here running Neos 4.0 and Monocle 4.0

It works in Development. In Production I login as an admin, then I click on "Open Styleguide in new Window" and I get the following Screen:

image

Logs:

missing or wrong credentials or no authentication provider matched.
Evaluated following 2 privilege target(s):
"Neos.Neos:AllControllerActions": ABSTAIN
"Sitegeist.Monocle:Styleguide.Module": ABSTAIN
(0 granted, 0 denied, 2 abstained) - See also: 2018060811095841e823.txt

fheinze avatar Jun 08 '18 09:06 fheinze

I cannot reproduce this. I first thought that this might be related to the production context but in my tests this is not the case.

Can you verify that you have a valid neos session and that the Styleguide is opened via the same domain.

mficzel avatar Jun 08 '18 16:06 mficzel

I have a session cookie and the url does not change

fheinze avatar Jun 18 '18 13:06 fheinze

Just had a look with @mstruebing and Christian M. I had the frontend login package in my composer.json. It was not removed after the update to Neos 4.0.

As I do not use the frontendlogin I just removed the following line "flowpack/neos-frontendlogin": "~3.0", and now everything works.

fheinze avatar Jun 27 '18 07:06 fheinze

Since I had this problem today: The frontendlogin Package registers a VERY greedy Pattern Matcher that basically matches everything that isn't "/neos" in the URI path

Neos:
  Flow:
    security:
      authentication:
        providers:
          'Neos.Neos:Backend':
            requestPatterns:
              'Flowpack.Neos.FrontendLogin:NeosBackend':
                pattern: Flowpack\Neos\FrontendLogin\Security\NeosRequestPattern
          'Flowpack.Neos.FrontendLogin:Frontend':
            provider: PersistedUsernamePasswordProvider
            requestPatterns:
              'Flowpack.Neos.FrontendLogin:NeosFrontend':
                pattern: Flowpack\Neos\FrontendLogin\Security\NeosRequestPattern
                patternOptions:
                  matchFrontend: true

I don't think there is anything that Monocle can or even should do about it.

bastianschwarz avatar Jun 21 '21 12:06 bastianschwarz

It could maybe move it's "place of living" to below /neos/…, but… yeah.

Thanks, this avoided some head-scratching today. 🙃

kdambekalns avatar Sep 19 '23 11:09 kdambekalns