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

Even if logged in the backend, basic authentication dialog opens up when accessing frontend resources (frontend site, backend preview or BLE with previews) #12529

Open
simonech opened this issue Jun 2, 2022 · 1 comment

Comments

@simonech
Copy link
Contributor

simonech commented Jun 2, 2022

Which exact Umbraco version are you using? For example: 9.0.1 - don't just write v9

9.5.0

Bug summary

The basic authentication dialog pops up when browsing the site, even if you are authenticated already in the backend.

It also pops up in the backend when looking at the preview from the backend or if a BLE contains a component whose preview references to urls outside of /umbraco.

Specifics

The workaround is to login first in the frontend and then go to the backend.

I see a small difference in the ways cookies are set:
when logging in via the backend, the UMB_UCONTEXT is set with expiration of one hour
image
while when logging in via basic auth dialog the same cookie is set as "session"
image

Steps to reproduce

  • Enable basic authentication
  • Log in to the backend: example.com/umbraco
  • do one of the following
    • go to example.com
    • open a preview of document
    • have a BLE component with a "realtime" preview that includes element of the frontend

Expected result / actual result

You should be able to browse the site, without the basic auth dialog popping up.

But you get the dialog (and interestingly, if you cancel you can still browse the site).
Obviously if you login again everything works, but is annoying to login twice.

The workaround is to login first in the frontend and then go to the backend. But login in the frontend is via basic auth instead of via a proper login screen, so more prone to "interception".

@github-actions
Copy link

github-actions bot commented Jun 2, 2022

Hi @simonech,

We're writing to let you know that we would love some help with this issue. We feel that this issue is ideal to flag for a community member to work on it. Once flagged here, folk looking for issues to work on will know to look at yours. Of course, please feel free work on this yourself ;-). If there are any changes to this status, we'll be sure to let you know.

For more information about issues and states, have a look at this blog post.

Thanks muchly, from your friendly Umbraco GitHub bot :-)

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

No branches or pull requests

3 participants