eXpandFramework / eXpand

DevExpress XAF (eXpressApp) extension framework. 𝗹𝗶𝗻𝗸𝗲𝗱𝗶𝗻.𝗲𝘅𝗽𝗮𝗻𝗱𝗳𝗿𝗮𝗺𝗲𝘄𝗼𝗿𝗸.𝗰𝗼𝗺, 𝘆𝗼𝘂𝘁𝘂𝗯𝗲.𝗲𝘅𝗽𝗮𝗻𝗱𝗳𝗿𝗮𝗺𝗲𝘄𝗼𝗿𝗸.𝗰𝗼𝗺 and 𝘁𝘄𝗶𝘁𝘁𝗲𝗿 @𝗲𝘅𝗽𝗮𝗻𝗱𝗳𝗿𝗮𝗺𝗲𝘄𝗼𝗿𝗸 and or simply 𝗦𝘁𝗮𝗿/𝘄𝗮𝘁𝗰𝗵 this repository and get notified from 𝗚𝗶𝘁𝗛𝘂𝗯
http://expand.expandframework.com
Microsoft Public License
222 stars 115 forks source link

Anonymous user: redirect to login if view not accessible #804

Closed emeyke closed 2 years ago

emeyke commented 3 years ago

Quite typical situation if the view is access by specific URL and the user is not logged on. Currently the error "cannot find the view" is displayed. It makes sense to make the behavior to redirect to login a default in case of anonymous authentication is enabled.

expand commented 3 years ago

We will try to answer all questions that do not require research within 24hr. To prioritize cases that require research we use the following labels in order. For all other issues the posting time is respected.

  1. ❇️ Exclusive-Services
    1. ❤ Bronze Sponsor
    2. ❤ Sponsor
    3. ❤ Backer
    4. Installation
    5. ShowStopper
    6. Nuget
    7. Contribution
    8. BreakingChange
    9. ReproSample
    10. Deployment
    11. must-have

This case is prioritized.

apobekiaris commented 3 years ago

the only similar message i found is at

https://github.com/eXpandFramework/eXpand/blob/01a65994c310251669d463246e4d4388b76d781d/Xpand/Xpand.ExpressApp.Modules/Dashboard/Controllers/DashboardNavigationController.cs#L90

a sample can always speed up resolution

emeyke commented 3 years ago

this is exactly the correct message and situation. Anon user does not have rights to access the view specified in the URL. So it is logical to redirect to login screen and after successful login redirect to originally requested view. If the user is logged in (not anon) but there is still no rights to access, then it makes sense to raise exception. This is more of a suggestion...

apobekiaris commented 3 years ago

eXpand.lab release 20.2.304.2 includes commit that relate to this task:

Please test if it addresses the problem. If you use nuget add our LAB NugetServer as a nuget package source in VS.

To minimize version conflicts we recommend that you switch to PackageReference format and use only the eXpandAgnostic, eXpandWin, eXpandWeb packages. Doing so, all packages will be at your disposal and .NET will add a dependecy only to those packages that you actually use and not to all (see the Modules installation-registrations youtube video).

Thanks a lot for your contribution.

apobekiaris commented 3 years ago

Issue is deprioritized as no Assignee found and scheduled for auto-close if no activity in the next 60 days. Thanks a lot for your contribution.

expand commented 2 years ago

Closing issue for age. Feel free to reopen it at any time.

.Thank you for your contribution.