Open lenoch opened 4 years ago
The exception NoResultException is actually handled. Just let code to continue execution and login process will finish.
The main difference between Admin user and PortalAdmin user is that the Admin has all permissions including the permission for managing Authentication service. The PortalAdmin user has permissions required for complete portal (Vokabulář webový) management including users and permissions management, but doesn't have permission to manage Authentication service. That's the reason why you get 403 error.
This is true, my bad. The process really finishes.
So PortalAdmin is not supposed to do any business in the Authentication service settings? In that case, is there a more user-friendly version of the "Error/403" page (which would say "you're not authorized"), or should we configure/implement it somehow?
Authentication service itself contains Error pages. The only thing which I just found is the wrong redirect on error when Auth Service is deployed in some subpath, e.g. /Auth/. In this case, the error middleware incorrectly redirects to /Error/{code} instead of /Auth/Error/{code}.
Can you reproduce the exception from $subj? Is there a way to fix it?
Steps to reproduce:
/Auth/Account/Logout
can be used to log out (alternatively, remove cookies).Admin and PortalAdmin look very similar in User > Details (
Auth/User/{Id}/View
), except for the role. The roles also look very similar; there is no obvious explanation why PortalAdmin appears as nonexistent to the service.When trying to log in with usernames in the development environment,
ContactTypeEnum contactType
was actuallyEmail
. Does this mean something?