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

Authorization broken with Server Side Hosting #327

Open
MichaelMay81 opened this issue Sep 22, 2023 · 0 comments
Open

Authorization broken with Server Side Hosting #327

MichaelMay81 opened this issue Sep 22, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@MichaelMay81
Copy link

When setting AddBoleroHost(server=true) than ctx.Auhorize and ctx.AuthorzieWith are not working any more.

  • The old Remoting gives "Microsoft.AspNetCore.Authorization.DefaultAuthorizationService: Information: Authorization failed. These requirements were not met: DenyAnonymousAuthorizationRequirement: Requires an authenticated user."

  • The new BoleroRemoting simple ignores Auhtorize and AuhtorizeWith and when I try to logout the site says: "One or more errors occurred. (Headers are read-only, response has already started.)"

How to reproduce:

  • Setup Bolero with the Template
  • Add "server=true" to AddBoleroHost in Startup.fs
  • Goto http://localhost:5000/data
    Expected behaviour: Website asks for login and password
    Actual behaviour: Booklist is shown and SignOut is not possible (see above)
@Tarmil Tarmil added the bug Something isn't working label Sep 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants