Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backend module authentication failure #68

Open
DrNik opened this issue Jan 22, 2018 · 7 comments
Open

Backend module authentication failure #68

DrNik opened this issue Jan 22, 2018 · 7 comments

Comments

@DrNik
Copy link

DrNik commented Jan 22, 2018

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

@gerdemann
Copy link
Contributor

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

@fheinze
Copy link

fheinze commented Jun 8, 2018

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

@mficzel
Copy link
Member

mficzel commented Jun 8, 2018

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.

@fheinze
Copy link

fheinze commented Jun 18, 2018

I have a session cookie and the url does not change

@fheinze
Copy link

fheinze commented Jun 27, 2018

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.

@bastianschwarz
Copy link

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.

@kdambekalns
Copy link
Contributor

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

Thanks, this avoided some head-scratching today. 🙃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants