Quantcast
Channel: Customized Commerce 13 and earlier versions
Viewing all articles
Browse latest Browse all 9642

Search & Navigation OIDC authorization issues

$
0
0

Hi everyone,

I'm having some issues with accessing the search & navigation UI after setting up authentication using OpenID Connect. As expected the menu item was hidden because the role names are different in the new setup. Then I mapped the 'SearchAdmins' role to the new roles, but even though the menu item is now visible nothing happens when clicking it (it appends #global_find_sub to the current URL). When accessing the URL directly (/EPiServer/Find) it redirects to /Account/AccessDenied?ReturnUrl=%2FEPiServer%2FFind— meaning that the current user does not have access.

When I revert the authentication back to use the AddCmsAspNetIdentity then everything works perfectly fine. Hoping that someone here can point me in the right direction.

App settings configuration:

{"EPiServer": {"Cms": {"MappedRoles": {"Items": {"SearchAdmins": {"MappedRoles": [ "MyCustomAdminRole" ]
          }
        }
      }
    },"Find": {"DefaultIndex": "X","ServiceUrl": "X","TrackingSanitizerEnabled": true,"TrackingTimeout": 30000
    }
  }
}

In startup:

services.AddFind();

Sidenote, I don't have the Content Manager installed so when I go to the root URL /episerver it will automatically go to the Search & Navigation UI (after login if I'm not already logged in). This doesn't make any sense to me and I was confused as to why this request returned access denied. Is it possible to change this to redirect to CMS/Edit instead?


Viewing all articles
Browse latest Browse all 9642

Trending Articles